| 1 |
---input--- |
| 2 |
constraint foo, bar { |
| 3 |
|
| 4 |
:name "myrule" |
| 5 |
rule (odd X) \ (even X) | true <=> fail. |
| 6 |
|
| 7 |
} |
| 8 |
rule. % not a kwd |
| 9 |
|
| 10 |
---tokens--- |
| 11 |
'constraint' Keyword.Declaration |
| 12 |
' ' Text.Whitespace |
| 13 |
'foo, bar ' Name.Function |
| 14 |
'{' Punctuation |
| 15 |
'\n\n ' Text.Whitespace |
| 16 |
':name' Keyword.Mode |
| 17 |
' ' Text.Whitespace |
| 18 |
'"' Literal.String.Double |
| 19 |
'myrule' Literal.String.Double |
| 20 |
'"' Literal.String.Double |
| 21 |
'\n ' Text.Whitespace |
| 22 |
'rule' Keyword.Declaration |
| 23 |
' ' Text.Whitespace |
| 24 |
'(' Punctuation |
| 25 |
'odd' Text |
| 26 |
' ' Text.Whitespace |
| 27 |
'X' Name.Variable |
| 28 |
')' Punctuation |
| 29 |
' ' Text.Whitespace |
| 30 |
'\\' Keyword.Declaration |
| 31 |
' ' Text.Whitespace |
| 32 |
'(' Punctuation |
| 33 |
'even' Text |
| 34 |
' ' Text.Whitespace |
| 35 |
'X' Name.Variable |
| 36 |
')' Punctuation |
| 37 |
' ' Text.Whitespace |
| 38 |
'|' Keyword.Declaration |
| 39 |
' ' Text.Whitespace |
| 40 |
'true' Text |
| 41 |
' ' Text.Whitespace |
| 42 |
'<=>' Keyword.Declaration |
| 43 |
' ' Text.Whitespace |
| 44 |
'fail' Text |
| 45 |
'.' Operator |
| 46 |
'\n\n' Text.Whitespace |
| 47 |
|
| 48 |
'}' Punctuation |
| 49 |
'\n' Text.Whitespace |
| 50 |
|
| 51 |
'rule' Text |
| 52 |
'.' Operator |
| 53 |
' ' Text.Whitespace |
| 54 |
'% not a kwd\n' Comment |