julia: update parser and highlights (#4016)

- Replace `scoped_identifier` with `field_expression` in function names
- Replace true and false with `boolean_literal`
This commit is contained in:
Sergio A. Vargas 2022-12-23 04:34:24 -05:00 committed by GitHub
parent 895d4a1202
commit 82cff67988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View file

@ -204,7 +204,7 @@
"revision": "505f5bd90053ae895aa3d6f2bac8071dd9abd8b2" "revision": "505f5bd90053ae895aa3d6f2bac8071dd9abd8b2"
}, },
"julia": { "julia": {
"revision": "36b099e9ea577f64ba53323115028dadd2991d2c" "revision": "f254ff9c52e994f629a60821662917d2c6c0e8eb"
}, },
"kotlin": { "kotlin": {
"revision": "b953dbdd05257fcb2b64bc4d9c1578fac12e3c28" "revision": "b953dbdd05257fcb2b64bc4d9c1578fac12e3c28"

View file

@ -30,9 +30,9 @@
name: (identifier) @function) name: (identifier) @function)
(function_definition (function_definition
name: (scoped_identifier (identifier) @function .)) name: (field_expression (identifier) @function .))
(short_function_definition (short_function_definition
name: (scoped_identifier (identifier) @function .)) name: (field_expression (identifier) @function .))
;; calls ;; calls
@ -191,11 +191,7 @@
;;; Literals ;;; Literals
[ (boolean_literal) @boolean
(true)
(false)
] @boolean
(integer_literal) @number (integer_literal) @number
(float_literal) @float (float_literal) @float