mirror of
https://github.com/github/codeql.git
synced 2026-06-25 14:47:04 +02:00
Preserve the dot token in case patterns
This commit is contained in:
@@ -1930,7 +1930,7 @@ module.exports = grammar({
|
||||
seq(
|
||||
optional("case"),
|
||||
optional(field("type", $.user_type)), // XXX this should just be _type but that creates ambiguity
|
||||
$._dot,
|
||||
field("dot", $._dot),
|
||||
field("name", $.simple_identifier),
|
||||
optional(field("arguments", $.tuple_pattern))
|
||||
),
|
||||
|
||||
@@ -173,6 +173,7 @@ named:
|
||||
value?: expression
|
||||
case_pattern:
|
||||
arguments?: tuple_pattern
|
||||
dot: "."
|
||||
name: simple_identifier
|
||||
type?: user_type
|
||||
catch_block:
|
||||
|
||||
Reference in New Issue
Block a user