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 | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.tar nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.tar.gz nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.tar.bz2 nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.tar.lz nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.tar.xz nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.tar.zst nvim-treesitter-ef05f00814cb2ac125b9a86f174bbd3c50fdd8d3.zip | |
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.
| -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 fe3266417..1b7e5b72c 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 |
