aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/matlab/highlights.scm9
2 files changed, 7 insertions, 4 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index ea48f3ad1..3abe166a1 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -1367,7 +1367,7 @@ return {
},
matlab = {
install_info = {
- revision = '93020b226bf341de02336cdf1c19a7ce0b509cf2',
+ revision = '96a3e8fb0a4ebd0db64db6b52043483937e9ca3a',
url = 'https://github.com/acristoffers/tree-sitter-matlab',
},
maintainers = { '@acristoffers' },
diff --git a/runtime/queries/matlab/highlights.scm b/runtime/queries/matlab/highlights.scm
index 91fdae2a9..66ec69465 100644
--- a/runtime/queries/matlab/highlights.scm
+++ b/runtime/queries/matlab/highlights.scm
@@ -134,8 +134,7 @@
(identifier) @function)
(validation_functions
- (property_name
- (identifier) @function))
+ (identifier) @function)
(command
(command_name) @function.call)
@@ -205,7 +204,11 @@
(number) @number
-(boolean) @boolean
+((identifier) @boolean
+ (#eq? @boolean "true"))
+
+((identifier) @boolean
+ (#eq? @boolean "false"))
; Comments
[