tartrazine/spec/tests/react/test_arrow_function_attribute.txt

26 lines
639 B
Plaintext
Raw Permalink Normal View History

2024-08-03 10:36:47 +00:00
---input---
<button onClick={e => e.preventDefault ()} />
---tokens---
'<' Punctuation
'button' Name.Tag
' ' Text.Whitespace
'onClick' Name.Attribute
'=' Operator
'{' Punctuation
'e' Name.Other
' ' Text.Whitespace
'=>' Punctuation
' ' Text.Whitespace
'e' Name.Other
'.' Punctuation
'preventDefault' Name.Other
' ' Text.Whitespace
'(' Punctuation
')' Punctuation
'}' Punctuation
' ' Text.Whitespace
'/' Punctuation
'>' Punctuation
'\n' Text.Whitespace