diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-05-15 12:23:26 +0200 |
---|---|---|
committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-06-02 21:19:07 +0200 |
commit | 8349192503450d645bad6a2b30a72c67fd97f7c8 (patch) | |
tree | 134a41034a48176a777748b7f2e0954389446206 /test/functional/lua/treesitter_spec.lua | |
parent | 91e41c857622b61adcf84f6a6af87a3f5a4d65f5 (diff) | |
download | rneovim-8349192503450d645bad6a2b30a72c67fd97f7c8.tar.gz rneovim-8349192503450d645bad6a2b30a72c67fd97f7c8.tar.bz2 rneovim-8349192503450d645bad6a2b30a72c67fd97f7c8.zip |
treesitter: update runtime
Since tree-sitter PR 615, predicates are not parsed the same.
"Old" way of writing predicates is still supported.
Diffstat (limited to 'test/functional/lua/treesitter_spec.lua')
-rw-r--r-- | test/functional/lua/treesitter_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/lua/treesitter_spec.lua b/test/functional/lua/treesitter_spec.lua index f93185d1f6..cb0e46b9eb 100644 --- a/test/functional/lua/treesitter_spec.lua +++ b/test/functional/lua/treesitter_spec.lua @@ -240,15 +240,15 @@ static int nlua_schedule(lua_State *const lstate) ; TODO(bfredl): overlapping matches are unreliable, ; we need a proper priority mechanism ;(type_identifier) @type -((type_identifier) @Special (eq? @Special "LuaRef")) +((type_identifier) @Special (#eq? @Special "LuaRef")) (primitive_type) @type (sized_type_specifier) @type ; defaults to very magic syntax, for best compatibility -((identifier) @Identifier (match? @Identifier "^l(u)a_")) +((identifier) @Identifier (#match? @Identifier "^l(u)a_")) ; still support \M etc prefixes -((identifier) @Constant (match? @Constant "\M^\[A-Z_]\+$")) +((identifier) @Constant (#match? @Constant "\M^\[A-Z_]\+$")) ((binary_expression left: (identifier) @WarningMsg.left right: (identifier) @WarningMsg.right) (eq? @WarningMsg.left @WarningMsg.right)) |