Put -
first in character class patterns
If `-` is not first or last in a character classes, it matches a range based on the character code. This applies to special characters as well as to alphanumeric characters.
This commit is contained in:
parent
7c455db52e
commit
44bc51a90a
|
@ -46,10 +46,10 @@ add-highlighter shared/elm/code/ regex \b([A-Z]+[^\s]*)\b
|
||||||
add-highlighter shared/elm/code/ regex \b([a-z]+[^\s]*)\b 0:variable
|
add-highlighter shared/elm/code/ regex \b([a-z]+[^\s]*)\b 0:variable
|
||||||
add-highlighter shared/elm/code/ regex \b(^[a-z]+[^\s]*)\b 0:function
|
add-highlighter shared/elm/code/ regex \b(^[a-z]+[^\s]*)\b 0:function
|
||||||
add-highlighter shared/elm/code/ regex "-?\b[0-9]*\.?[0-9]+" 0:value
|
add-highlighter shared/elm/code/ regex "-?\b[0-9]*\.?[0-9]+" 0:value
|
||||||
add-highlighter shared/elm/code/ regex \B[+-<>!@#$%^&*=:/\\|]+\B 0:operator
|
add-highlighter shared/elm/code/ regex \B[-+<>!@#$%^&*=:/\\|]+\B 0:operator
|
||||||
add-highlighter shared/elm/code/ regex \b(import|exposing|as|module|where)\b 0:meta
|
add-highlighter shared/elm/code/ regex \b(import|exposing|as|module|where)\b 0:meta
|
||||||
add-highlighter shared/elm/code/ regex \b(type|alias|if|then|else|case|of|let|in|infix|_)\b) 0:keyword
|
add-highlighter shared/elm/code/ regex \b(type|alias|if|then|else|case|of|let|in|infix|_)\b) 0:keyword
|
||||||
add-highlighter shared/elm/code/ regex (?<![+-<>!@#$%^&*=:/\\|])(->|:|=|\|)(?![+-<>!@#$%^&*=:/\\|]) 0:keyword
|
add-highlighter shared/elm/code/ regex (?<![-+<>!@#$%^&*=:/\\|])(->|:|=|\|)(?![-+<>!@#$%^&*=:/\\|]) 0:keyword
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
# ‾‾‾‾‾‾‾‾
|
# ‾‾‾‾‾‾‾‾
|
||||||
|
|
Loading…
Reference in New Issue
Block a user