summaryrefslogtreecommitdiff
path: root/tests/lexers/javascript+mozpreproc/example.txt
blob: 0f41780ae2fee8df37d3ee7269e9081b3b75eac8 (plain)
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
---input---
window.foo = {
#if defined(__foo__)
  'key': 'value'
#endif
}
#literal #foo

---tokens---
'window'      Name.Builtin
'.'           Punctuation
'foo'         Name.Other
' '           Text
'='           Operator
' '           Text
'{'           Punctuation
'\n'          Text

'#'           Comment.Preproc
'if'          Comment.Preproc
' '           Text
'defined'     Keyword
'('           Punctuation
'__foo__'     Name.Variable
')'           Punctuation
'\n'          Text

'  '          Text
"'key'"       Literal.String.Single
':'           Operator
' '           Text
"'value'"     Literal.String.Single
'\n'          Text

'#'           Comment.Preproc
'endif'       Comment.Preproc
'\n'          Text

'}'           Punctuation
'\n'          Text

'#'           Comment.Preproc
'literal'     Comment.Preproc
' #foo'       Text
'\n'          Text