diff options
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 4 | ||||
| -rw-r--r-- | runtime/queries/gotmpl/highlights.scm | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 9f14b2038..cae9df413 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -811,7 +811,7 @@ return { }, gotmpl = { install_info = { - revision = '5f19a36bb1eebb30454e277b222b278ceafed0dd', + revision = '65f4f86c3aaa9dabab36e3482584e8a111cf7db1', url = 'https://github.com/ngalaiko/tree-sitter-go-template', }, maintainers = { '@qvalentin' }, @@ -923,7 +923,7 @@ return { helm = { install_info = { location = 'dialects/helm', - revision = '5f19a36bb1eebb30454e277b222b278ceafed0dd', + revision = '65f4f86c3aaa9dabab36e3482584e8a111cf7db1', url = 'https://github.com/ngalaiko/tree-sitter-go-template', }, maintainers = { '@qvalentin' }, diff --git a/runtime/queries/gotmpl/highlights.scm b/runtime/queries/gotmpl/highlights.scm index 4ee768c28..80c977717 100644 --- a/runtime/queries/gotmpl/highlights.scm +++ b/runtime/queries/gotmpl/highlights.scm @@ -59,7 +59,6 @@ [ "if" "else" - "else if" "end" ] @keyword.conditional (#set! priority 110)) @@ -98,6 +97,14 @@ ] @keyword.conditional (#set! priority 110)) +(continue_action + "continue" @keyword.repeat + (#set! priority 110)) + +(break_action + "break" @keyword.repeat + (#set! priority 110)) + ; Literals ([ (interpreted_string_literal) |
