diff options
| author | Sergio A. Vargas <savargasqu+git@unal.edu.co> | 2022-12-23 04:34:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-23 10:34:24 +0100 |
| commit | 82cff67988b36450caefb557414ef697a83a58af (patch) | |
| tree | 5a6354fcb906ec86d9b7e03f9c10a4bd6769b629 | |
| parent | Update parsers: c_sharp (diff) | |
| download | nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.tar nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.tar.gz nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.tar.bz2 nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.tar.lz nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.tar.xz nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.tar.zst nvim-treesitter-82cff67988b36450caefb557414ef697a83a58af.zip | |
julia: update parser and highlights (#4016)
- Replace `scoped_identifier` with `field_expression` in function names
- Replace true and false with `boolean_literal`
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | queries/julia/highlights.scm | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lockfile.json b/lockfile.json index 1c691db18..81e9cb850 100644 --- a/lockfile.json +++ b/lockfile.json @@ -204,7 +204,7 @@ "revision": "505f5bd90053ae895aa3d6f2bac8071dd9abd8b2" }, "julia": { - "revision": "36b099e9ea577f64ba53323115028dadd2991d2c" + "revision": "f254ff9c52e994f629a60821662917d2c6c0e8eb" }, "kotlin": { "revision": "b953dbdd05257fcb2b64bc4d9c1578fac12e3c28" diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm index 5e4922e14..89840dafe 100644 --- a/queries/julia/highlights.scm +++ b/queries/julia/highlights.scm @@ -30,9 +30,9 @@ name: (identifier) @function) (function_definition - name: (scoped_identifier (identifier) @function .)) + name: (field_expression (identifier) @function .)) (short_function_definition - name: (scoped_identifier (identifier) @function .)) + name: (field_expression (identifier) @function .)) ;; calls @@ -191,11 +191,7 @@ ;;; Literals -[ - (true) - (false) -] @boolean - +(boolean_literal) @boolean (integer_literal) @number (float_literal) @float |
