mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
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:
parent
a0d6d8a03f
commit
a805844e20
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user