From 538f2a74c75a141772c76abfced60678d05cb6e1 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Sat, 22 Sep 2018 16:16:36 -0400 Subject: [PATCH] Fix clojure numbers - Fix issue where numbers which were part of symbols were highlighted. - Fix issue where hexidecimals weren't highlighted past the 'x' --- rc/base/clojure.kak | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rc/base/clojure.kak b/rc/base/clojure.kak index 7dceca3e..8d448a57 100644 --- a/rc/base/clojure.kak +++ b/rc/base/clojure.kak @@ -22,11 +22,6 @@ add-highlighter shared/clojure/code/ regex \b(nil|true|false)\b 0:value add-highlighter shared/clojure/code/ regex \ \\(?:space|tab|newline|return|backspace|formfeed|u[0-9a-fA-F]{4}|o[0-3]?[0-7]{1,2}|.)\b 0:string -# Numbers -add-highlighter shared/clojure/code/ regex [-+]?(?:0[0-7]*|0[xX][0-9a-fA-F]+|[1-9]+)N? 0:value -add-highlighter shared/clojure/code/ regex [-+]?(?:0|[1-9]\d*|(?:0|[1-9]\d*)\.\d*)(?:M|[eE][-+]?\d+)? 0:value -add-highlighter shared/clojure/code/ regex [-+]?(?:0|[1-9]\d*)/(?:0|[1-9]\d*) 0:value - hook global WinSetOption filetype=clojure %{ set-option window extra_word_chars . / * ? + - < > ! : "'" } @@ -142,7 +137,14 @@ evaluate-commands %sh{ static_words="$(join "$static_words" ' ')" printf %s " + # Keywords add-highlighter shared/clojure/code/ regex ::?(${symbol_char}+/)?${symbol_char}+ 0:value + + # Numbers + add-highlighter shared/clojure/code/ regex (?