Skip to content

Commit

Permalink
chore: regen snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrob committed Jun 23, 2024
1 parent 32db14e commit 1797886
Show file tree
Hide file tree
Showing 11 changed files with 845 additions and 12 deletions.
3 changes: 3 additions & 0 deletions tests/embedded/embedded.just.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
># Embedded languages
#^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
># TODO: how to test embedded grammars in snapshots?
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>python:
#^^^^^^ source.just entity.name.function.just
# ^ source.just keyword.operator.recipe.end.just
Expand Down
25 changes: 25 additions & 0 deletions tests/general/builtins.just.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
># Builin keywords
#^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>alias
#^^^^^ source.just keyword.other.reserved.just
>set
#^^^ source.just keyword.other.reserved.just
>export
#^^^^^^ source.just keyword.other.reserved.just
>import
#^^^^^^ source.just keyword.other.reserved.just
>mod
#^^^ source.just keyword.other.reserved.just
>
># Control keywords
#^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>if
#^^ source.just keyword.control.conditional.just
>else
#^^^^ source.just keyword.control.conditional.just
>
># Builtin functions
#^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
># TODO: should parentheses be optional or required?
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
># System info
#^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
Expand Down
15 changes: 15 additions & 0 deletions tests/general/constants.just.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
># Constants
#^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>true
#^^^^ source.just constant.language.boolean.just
>false
#^^^^^ source.just constant.language.boolean.just
>
>HEX
#^^^ source.just constant.language.hex.just
>HEXLOWER
#^^^^^^^^ source.just constant.language.hex.just
>HEXUPPER
#^^^^^^^^ source.just constant.language.hex.just
>
35 changes: 33 additions & 2 deletions tests/general/general.just.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
># Comments
#^^^^^^^^^^ source.just comment.line.number-sign.just
>
># I am a comment
#^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
># Standard comment
#^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>something # Comment after code
#^^^^^^^^^^ source.just
# ^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
># Numbers
#^^^^^^^^^ source.just comment.line.number-sign.just
>
>123
#^^^ source.just constant.language.integer.just
># TODO: should the "." be colored differently?
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>123.456
#^^^ source.just constant.language.integer.just
# ^ source.just
# ^^^ source.just constant.language.integer.just
>
># Imports
#^^^^^^^^^ source.just comment.line.number-sign.just
>
>import 'foo/bar.just'
#^^^^^^ source.just keyword.other.reserved.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
>
>mod bar
#^^^ source.just keyword.other.reserved.just
# ^ source.just
# ^^^^ source.just
>
227 changes: 227 additions & 0 deletions tests/general/multi-line-constructs.just.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
># Multi-line constructs
#^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
># TODO: do we need to validate this?
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
># TODO: should just-specific highlighting in recipes be conditional (ex. only in interpolation blocks)
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
># or always on?
#^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>multi-line-recipe:
#^^^^^^^^^^^^^^^^^ source.just entity.name.function.just
# ^ source.just keyword.operator.recipe.end.just
> if true; then \
#^^ source.just
# ^^ source.just keyword.control.conditional.just
# ^ source.just
# ^^^^ source.just constant.language.boolean.just
# ^^^^^^^^^ source.just
> echo 'True!'; \
#^^^^^^^^^ 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
> fi
#^^^^^ source.just
>
>
># Parenthesis blocks don't need explicit line breaks
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>abc := ('a' +
#^^^ 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
# ^ source.just
# ^ source.just keyword.operator.concat.just
> 'b'
#^^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
> + 'c')
#^^^^^^^^^ source.just
# ^ source.just keyword.operator.concat.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
# ^^ source.just
>
>abc2 := (
#^^^^ source.just variable.other.just
# ^ source.just
# ^^ source.just keyword.operator.assignment.just
# ^^^ source.just
> 'a' +
#^^ 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
# ^ source.just keyword.operator.concat.just
> 'b' +
#^^ 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
# ^ source.just keyword.operator.concat.just
> 'c'
#^^ 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
>
># TODO: multi-line recipe def broken
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>foo param=('foo'
#^^^^^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
> + 'bar'
#^^^^^^ source.just
# ^ source.just keyword.operator.concat.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
> ):
#^^^^^^^ source.just
> echo {{param}}
#^^^^^^^ source.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
# ^^^^^ source.just string.interpolated.escaping.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
>
>bar: (foo
#^^^ source.just entity.name.function.just
# ^ source.just keyword.operator.recipe.end.just
# ^^ source.just
# ^^^ source.just entity.name.function.just
> 'Foo'
#^^^^^^^^ 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
> echo 'Bar!'
#^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
>
># Backslash continues as if whitespace
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>a := 'foo' + \
#^ 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
# ^ source.just
# ^ source.just keyword.operator.concat.just
# ^^^ source.just
> 'bar'
#^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
>
>foo param1 \
#^^^^^^^^^^^^^ source.just
> param2='foo' \
#^^^^^^^^^ 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
> *varparam='': dep1 \
#^^^^^^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^ source.just string.quoted.single.just
# ^^^^^^^^^ source.just
> (dep2 'foo')
#^^^^^^^^^^^^^^^^ source.just
# ^ source.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
# ^ source.just
> echo {{param1}} {{param2}} {{varparam}}
#^^^^^^^ source.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
# ^^^^^^ source.just string.interpolated.escaping.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
# ^ source.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
# ^^^^^^ source.just string.interpolated.escaping.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
# ^ source.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
# ^^^^^^^^ source.just string.interpolated.escaping.just
# ^^ source.just string.interpolated.escaping.just string.interpolated.escape.just
>
>dep1: \
#^^^^ source.just entity.name.function.just
# ^ source.just keyword.operator.recipe.end.just
# ^^ source.just
> # this comment is not part of the recipe body
#^^^^ source.just
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
> echo 'dep1'
#^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
>
>dep2 \
#^^^^^^^ source.just
> param:
#^^^^^^^^^ source.just
> echo 'Dependency with parameter {{param}}'
#^^^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just string.quoted.single.just
# ^^ source.just string.quoted.single.just string.interpolated.escaping.just string.interpolated.escape.just
# ^^^^^ source.just string.quoted.single.just string.interpolated.escaping.just
# ^^ source.just string.quoted.single.just string.interpolated.escaping.just string.interpolated.escape.just
# ^ source.just string.quoted.single.just
>
># Line continuation in interpolations
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just comment.line.number-sign.just
>
>recipe:
#^^^^^^ source.just entity.name.function.just
# ^ source.just keyword.operator.recipe.end.just
> echo '{{ \
#^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^^^ source.just string.quoted.single.just
> "This interpolation " + \
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just string.quoted.single.just
> "has a lot of text." \
#^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.just string.quoted.single.just
> }}'
#^^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
> echo 'back to recipe body'
#^^^^^^^ source.just
# ^ source.just string.quoted.single.just string.quoted.single.just
# ^^^^^^^^^^^^^^^^^^^ source.just string.quoted.single.just
# ^ source.just string.quoted.single.just
Loading

0 comments on commit 1797886

Please sign in to comment.