Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kirillov committed Apr 29, 2024
1 parent 784fe7d commit efb6442
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions tests/snippets/xonsh/test_xonsh.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---input---
$PATH.append(p"/home/anki-code/" / ".local/bin")
$(echo @("Path updated"))
bash -c! echo 1

---tokens---
'$PATH' Name.Variable
'.' Operator
'append' Name
'(' Punctuation
'p' Name
'"' Literal.String.Double
'/home/anki-code/' Literal.String.Double
'"' Literal.String.Double
' ' Text
'/' Operator
' ' Text
'"' Literal.String.Double
'.local/bin' Literal.String.Double
'"' Literal.String.Double
')' Punctuation
'\n' Text.Whitespace

'$' Keyword
'(' Punctuation
'echo' Name.Builtin
' ' Text
'@' Keyword
'(' Punctuation
'"' Literal.String.Double
'Path updated' Literal.String.Double
'"' Literal.String.Double
')' Punctuation
')' Punctuation
'\n' Text.Whitespace

'bash' Name
' ' Text
'-' Operator
'c' Name
'!' Keyword
' ' Text
'echo' Name
' ' Text
'1' Literal.Number.Integer
'\n' Text.Whitespace

0 comments on commit efb6442

Please sign in to comment.