Skip to content

Commit

Permalink
🧪 Add new test cases for 1.35.0 release (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrob authored Sep 8, 2024
1 parent 7e9bcc8 commit 30dd730
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 2 deletions.
2 changes: 2 additions & 0 deletions syntaxes/tests/general/general.just
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Standard comment

# Comment with ' single quote

something # Comment after code

# Imports
Expand Down
3 changes: 3 additions & 0 deletions syntaxes/tests/general/general.just.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
># Standard comment
#^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
># Comment with ' single quote
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>something # Comment after code
#^^^^^^^^^^ source.just
# ^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
Expand Down
10 changes: 9 additions & 1 deletion syntaxes/tests/recipes/recipe-attributes.just
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,12 @@ rust-lint:

[group('lint')]
cpp-lint:
echo 'Running C++ linter...'
echo 'Running C++ linter...'

# Private aliases and variables

[private]
alias foo := bar

[private]
baz := 'qux'
32 changes: 31 additions & 1 deletion syntaxes/tests/recipes/recipe-attributes.just.snap
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,34 @@
#^^^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^^^^^^^^^^^^^^^^^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
>
># Private aliases and variables
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>[private]
#^ source.just
# ^^^^^^^ source.just support.function.system.just
# ^^ source.just
>alias foo := bar
#^^^^^ source.just keyword.other.reserved.just
# ^ source.just
# ^^^ source.just variable.name.alias.just
# ^ source.just
# ^^ source.just keyword.operator.assignment.just
# ^ source.just
# ^^^ source.just variable.other.just
>
>[private]
#^ source.just
# ^^^^^^^ source.just support.function.system.just
# ^^ source.just
>baz := 'qux'
#^^^ source.just variable.other.just
# ^ source.just
# ^^ source.just keyword.operator.assignment.just
# ^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
>
4 changes: 4 additions & 0 deletions syntaxes/tests/statements/strings.just
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Strings

# Quote within a string

single-quote := "don't be afraid of contractions"

# Escaping sequences

string-with-tab := "\t"
Expand Down
12 changes: 12 additions & 0 deletions syntaxes/tests/statements/strings.just.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
># Strings
#^^^^^^^^^ source.just comment.line.number-sign.just
>
># Quote within a string
#^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>single-quote := "don't be afraid of contractions"
#^^^^^^^^^^^^ source.just variable.other.just
# ^ source.just
# ^^ source.just keyword.operator.assignment.just
# ^ source.just
# ^ source.just string.quoted.double.just string.quoted.double.just
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just string.quoted.double.just
# ^ source.just string.quoted.double.just
>
># Escaping sequences
#^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
Expand Down

0 comments on commit 30dd730

Please sign in to comment.