diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-05-13 00:52:29 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-05-13 00:56:40 -0400 |
| commit | ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1 (patch) | |
| tree | 32d97b8c75dd5481c672fd502eb9fbf33c4dfc48 | |
| parent | feat: add indents.scm for nickel (#4790) (diff) | |
| download | nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.tar nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.tar.gz nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.tar.bz2 nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.tar.lz nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.tar.xz nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.tar.zst nvim-treesitter-ec0d0ffe51fab458a346b8a8d6f9d69490f3d7e1.zip | |
feat(cpon): update queries
| -rw-r--r-- | queries/cpon/highlights.scm | 5 | ||||
| -rw-r--r-- | queries/cpon/indents.scm | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/queries/cpon/highlights.scm b/queries/cpon/highlights.scm index f08647293..807714a0f 100644 --- a/queries/cpon/highlights.scm +++ b/queries/cpon/highlights.scm @@ -15,6 +15,8 @@ "d" @character.special (_) @string.special) +(_ key: (_) @label) + (number) @number (float) @float @@ -36,6 +38,9 @@ [ "<" ">" ] @punctuation.bracket +(("\"" @conceal) + (#set! conceal "")) + ; Comments (comment) @comment @spell diff --git a/queries/cpon/indents.scm b/queries/cpon/indents.scm index 5f52ea6a1..8ec2ff57c 100644 --- a/queries/cpon/indents.scm +++ b/queries/cpon/indents.scm @@ -9,13 +9,7 @@ "]" "}" ">" -] @indent.end - -[ "{" "}" ] @indent.branch - -[ "[" "]" ] @indent.branch - -[ "<" ">" ] @indent.branch +] @indent.end @indent.branch [ (ERROR) |
