Skip to content

Commit 441e1e1

Browse files
committed
identifier_from_file: use identifierMarker
1 parent fcd1936 commit 441e1e1

File tree

2 files changed

+110
-169
lines changed

2 files changed

+110
-169
lines changed

grammar.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,8 @@ module.exports = grammar({
184184
</params>
185185
*/
186186
identifier_from_file: $ => seq(
187-
choice('FUNCTION', 'CLASS'), 'FROM', $.singlefile_clause,
188-
$.where_clause,
189-
optional($.offset_clause)
187+
$.identifierMarker, 'FROM', $.singlefile_clause,
188+
optional($.where_clause)
190189
),
191190

192191
/**

0 commit comments

Comments
 (0)