blob: 55f4c03e71ba5f4dfaa279b44ae48ddbe7cdede1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
HOCON = Human-Optimized Config Object Notation
// ^ @variable.member
// ^ @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
//^ @keyword.import
// ^ @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
|