mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
30 lines
785 B
Plaintext
30 lines
785 B
Plaintext
---input---
|
|
lock addq $0, /* comments */ (%rsp) /*
|
|
// comments
|
|
*/ xorq %rax, %rax // comments
|
|
|
|
---tokens---
|
|
'lock' Name.Attribute
|
|
' ' Text.Whitespace
|
|
'addq' Name.Function
|
|
' ' Text.Whitespace
|
|
'$0' Name.Constant
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'/* comments */' Comment.Multiline
|
|
' ' Text.Whitespace
|
|
'(' Punctuation
|
|
'%rsp' Name.Variable
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'/*\n// comments\n*/' Comment.Multiline
|
|
' ' Text.Whitespace
|
|
'xorq' Name.Function
|
|
' ' Text.Whitespace
|
|
'%rax' Name.Variable
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'%rax' Name.Variable
|
|
' ' Text.Whitespace
|
|
'// comments\n' Comment.Single
|