diff options
| author | antosha417 <anton.kavalkou@gmail.com> | 2022-01-15 21:13:47 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-16 14:59:39 +0100 |
| commit | d5147a608a6ac32f270c1373a4a2894a110fd78f (patch) | |
| tree | c403d1cf27ed80b0b03ef6f518f1dfa2fa26db53 /tests/query/highlights/hocon | |
| parent | add hocon (diff) | |
| download | nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.tar nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.tar.gz nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.tar.bz2 nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.tar.lz nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.tar.xz nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.tar.zst nvim-treesitter-d5147a608a6ac32f270c1373a4a2894a110fd78f.zip | |
add highlights tests
Diffstat (limited to 'tests/query/highlights/hocon')
| -rw-r--r-- | tests/query/highlights/hocon/test.conf | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/query/highlights/hocon/test.conf b/tests/query/highlights/hocon/test.conf new file mode 100644 index 000000000..881417b67 --- /dev/null +++ b/tests/query/highlights/hocon/test.conf @@ -0,0 +1,59 @@ +HOCON = Human-Optimized Config Object Notation +// ^field +// ^string +// ^string +// ^string +// ^string + +"it's": "a JSON\nsuperset", +// ^string +// ^string.escape +// ^punctuation.delimiter + +features: [ +// ^operator +// ^punctuation.bracket + less noisy / less pedantic syntax +// ^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 + // this is also a 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 + override = true +// ^boolean +} + +it's: ${it's}. A ${HOCON} +// ^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 +week = 7 days +// ^number +// ^keyword + + |
