Fix type, variable, and function patterns

The old ones are functionally correct (I think), but are un-necessarily
complex and not don't semantically fit what they are trying to match.
This commit is contained in:
lePerdu 2019-11-10 19:30:22 -05:00
parent a0d6d8a03f
commit a805844e20

View File

@ -42,9 +42,9 @@ add-highlighter shared/elm/string region '"' (?<!\\)(\\\\)*"
add-highlighter shared/elm/line_comment region (--) $ fill comment
add-highlighter shared/elm/comment region -recurse \{- \{- -\} fill comment
add-highlighter shared/elm/code/ regex \b([A-Z]+[^\s]*)\b 0:type
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]\w*\b 0:type
add-highlighter shared/elm/code/ regex \b[a-z]\w*\b 0:variable
add-highlighter shared/elm/code/ regex ^[a-z]\w*\b 0:function
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(import|exposing|as|module|port)\b 0:meta