aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/hocon
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-12-24 12:52:21 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-01-19 16:58:37 +0100
commit10dd49958c96f86c8247c715bd20a6681afc1d8b (patch)
tree511849caff160e818f4dd08a6106137dcadb620d /tests/query/highlights/hocon
parentfeat(injections): add printf format strings (diff)
downloadnvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.gz
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.bz2
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.lz
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.xz
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.zst
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.zip
chore(tests): consistent captures
Diffstat (limited to 'tests/query/highlights/hocon')
-rw-r--r--tests/query/highlights/hocon/test.conf66
1 files changed, 33 insertions, 33 deletions
diff --git a/tests/query/highlights/hocon/test.conf b/tests/query/highlights/hocon/test.conf
index 881417b67..acfe4f975 100644
--- a/tests/query/highlights/hocon/test.conf
+++ b/tests/query/highlights/hocon/test.conf
@@ -1,59 +1,59 @@
HOCON = Human-Optimized Config Object Notation
-// ^field
-// ^string
-// ^string
-// ^string
-// ^string
+// ^ @field
+// ^ @string
+// ^ @string
+// ^ @string
+// ^ @string
"it's": "a JSON\nsuperset",
-// ^string
-// ^string.escape
-// ^punctuation.delimiter
+// ^ @string
+// ^ @string.escape
+// ^ @punctuation.delimiter
features: [
-// ^operator
-// ^punctuation.bracket
+// ^ @operator
+// ^ @punctuation.bracket
less noisy / less pedantic syntax
-// ^string
+// ^ @string
ability to refer to another part of the configuration
import/include another configuration file into the current file
a mapping to a flat properties list such as Java's system properties
ability to get values from environment variables
# ability to write comments
-// ^comment
-// ^comment
+// ^@ comment
+// ^ @comment
// this is also a comment
-// ^comment
-// ^comment
+// ^ @comment
+// ^ @comment
]
specs url: "https://github.com/lightbend/config/blob/master/HOCON.md"
includes: {
include required(file("~/prog/tree-sitter-hocon/grammar.js"))
-// ^keyword
-//^include
-// ^punctuation.bracket
-// ^punctuation.bracket
+// ^ @keyword
+//^ @include
+// ^ @punctuation.bracket
+// ^ @punctuation.bracket
override = true
-// ^boolean
+// ^ @boolean
}
it's: ${it's}. A ${HOCON}
-// ^punctuation.special
-// ^punctuation.special
-// ^punctuation.special
-// ^string
-// ^string
-// ^punctuation.special
-// ^punctuation.special
+// ^ @punctuation.special
+// ^ @punctuation.special
+// ^ @punctuation.special
+// ^ @string
+// ^ @string
+// ^ @punctuation.special
+// ^ @punctuation.special
this.is.a."long.key" = null,
-// ^punctuation.delimiter
-// ^punctuation.delimiter
-// ^punctuation.delimiter
-// ^constant.builtin
+// ^ @punctuation.delimiter
+// ^ @punctuation.delimiter
+// ^ @punctuation.delimiter
+// ^ @constant.builtin
week = 7 days
-// ^number
-// ^keyword
+// ^ @number
+// ^ @keyword