summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlePerdu <zdpeltzer@gmail.com>2019-11-10 19:30:22 -0500
committerlePerdu <zdpeltzer@gmail.com>2019-11-10 19:35:11 -0500
commita805844e20c9ea040ca0cb3be42df5c4eb79b51f (patch)
tree7e607229048a3767d45eba93100ba314fe2f2843
parenta0d6d8a03f11b92d3b0ab8a5df177ef524f66fdb (diff)
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.
-rw-r--r--rc/filetype/elm.kak6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/filetype/elm.kak b/rc/filetype/elm.kak
index 78755967..014c4592 100644
--- a/rc/filetype/elm.kak
+++ b/rc/filetype/elm.kak
@@ -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