summaryrefslogtreecommitdiff
path: root/tests/lexers/css+mozpreproc/example.txt
blob: c09bce847b4b0bbb1b72400e6965daa95bab67bf (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
---input---
%if defined(__foo__)
.cls {
  color: #fff;
}
%endif
%literal %foo

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

'.'           Punctuation
'cls'         Name.Class
' '           Text
'{'           Punctuation
'\n'          Text

'  '          Text
'color'       Keyword
':'           Punctuation
' '           Text
'#fff'        Literal.Number.Hex
';'           Punctuation
'\n'          Text

'}'           Punctuation
'\n'          Text

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

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