diff options
| author | Fredrik Ekre <ekrefredrik@gmail.com> | 2022-10-12 00:24:57 +0200 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-10-12 18:17:21 +0200 |
| commit | ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3 (patch) | |
| tree | f8c0fbf15ed3027784717797dc689280af1a544b /queries/julia/highlights.scm | |
| parent | 664570a1f2985e7d1d0904e06767d34e84949801 (diff) | |
fix(julia): remove highlight query for constants
This patch removes the highlight query for constant identifiers based on
capitalization. This led to inconsistent highlighting since e.g. `AA`
would be a regular identifier, but `AAA` a constant. It is indeed true
that some constants are uppercase only identifiers, but there are also
constants which doesn't follow this pattern. Since there are no rules
about this it seems better to not try to guess.
Diffstat (limited to 'queries/julia/highlights.scm')
| -rw-r--r-- | queries/julia/highlights.scm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm index fe326641..1b7e5b72 100644 --- a/queries/julia/highlights.scm +++ b/queries/julia/highlights.scm @@ -7,8 +7,6 @@ ;; In case you want type highlighting based on Julia naming conventions (this might collide with mathematical notation) ;((identifier) @type ; exception: mark `A_foo` sort of identifiers as variables ;(match? @type "^[A-Z][^_]")) -((identifier) @constant - (#match? @constant "^[A-Z][A-Z_]{2}[A-Z_]*$")) (macro_identifier) @function.macro (macro_identifier (identifier) @function.macro) ; for any one using the variable highlight |
