From 82cff67988b36450caefb557414ef697a83a58af Mon Sep 17 00:00:00 2001 From: "Sergio A. Vargas" Date: Fri, 23 Dec 2022 04:34:24 -0500 Subject: [PATCH] julia: update parser and highlights (#4016) - Replace `scoped_identifier` with `field_expression` in function names - Replace true and false with `boolean_literal` --- lockfile.json | 2 +- 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