Revert back to previous char literal highlighter as it's more precise

This commit is contained in:
tawsi-melek 2019-08-12 17:17:20 +02:00
parent 228a8dd9ae
commit 3f405b00f1

View File

@ -101,7 +101,7 @@ evaluate-commands %sh{
}
add-highlighter shared/nim/code/ regex '(,|;|`|\(\.?|\.?\)|\[[.:]?|\.?\]|\{\.?|\.?\})' 0:meta
add-highlighter shared/nim/code/char regex %{\B'(\\x[0-9a-fA-F]{2}|\\"|(\\.)|[^'\\])'\B} 0:value
add-highlighter shared/nim/code/ regex %{'(\\([rcnlftvabe\\"']|0*[12]?\d?\d|x[0-9a-fA-F]{2})|[^'\n])'} 0:value
# Commands
# ‾‾‾‾‾‾‾‾