Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧪 Add new test cases for 1.35.0 release #31

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading