Skip to content

Commit

Permalink
add snippets of unsupported constructions for dockerfile, go, js and rb
Browse files Browse the repository at this point in the history
  • Loading branch information
vanyauhalin committed Mar 1, 2025
1 parent 9b35127 commit 8631e91
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fixtures/dockerfile-
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# The grammar defines the user as a method, which is a bug.
RUN \
user

# There is no scope for backslash.
RUN \
echo \
echo
5 changes: 5 additions & 0 deletions fixtures/go-
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// There is no scope for the comparable in the Go grammar.
// https://github.com/worlpaker/go-syntax/issues/20/
func f[K comparable, V any]()

// There is no scope for a property whose name may resemble a primitive type.
struct {
int int
}{}
7 changes: 7 additions & 0 deletions fixtures/js-
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ const of = ""
// It is not a part of the core javascript grammar.
// https://github.com/0x00000001A/es6-string-html/issues/51/
/*css*/``

// I would like to highlight the text inside JSX tags in the same way as it is
// highlighted in regular HTML tags.
<div>txt</div>

// I would like to have a scope that includes everything after the as keyword.
let a = a as number | Error | string
3 changes: 3 additions & 0 deletions fixtures/rb-
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# There are no scopes for number separators.
1_0
1.0

0 comments on commit 8631e91

Please sign in to comment.