Skip to content

Commit 509f357

Browse files
committed
feat: Add 'METHOD' as an alternative to 'FUNCTION' in the grammar
1 parent ad33836 commit 509f357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports = grammar({
247247
identifierMarker: Points to an identifier (variable, function or class).
248248
Use `OFFSET <n>` to pinpoint which (if there are 2 or more with same name)
249249
*/
250-
identifierMarker: $ => seq(field('identifier', choice('VARIABLE', 'FUNCTION', 'CLASS')), field('identifierMarker', $.string), optional($.offset_clause)),
250+
identifierMarker: $ => seq(field('identifier', choice('VARIABLE', 'FUNCTION', 'METHOD', 'CLASS')), field('identifierMarker', $.string), optional($.offset_clause)),
251251
marker: $ => choice($.lineMarker, $.identifierMarker),
252252
/**
253253
relpos_beforeafter: Points to region immediately before or after a `marker`

0 commit comments

Comments
 (0)