Skip to content

Commit 925559f

Browse files
committed
Merge branch 'misc'
2 parents 936762c + 5600894 commit 925559f

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

mdl/grammar/MDLParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ alterNotebookAction
814814
// =============================================================================
815815

816816
createModuleStatement
817-
: MODULE IDENTIFIER moduleOptions?
817+
: MODULE identifierOrKeyword moduleOptions?
818818
;
819819

820820
moduleOptions

mdl/grammar/parser/MDLParser.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

mdl/grammar/parser/mdl_parser.go

Lines changed: 19 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mdl/visitor/visitor_module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
func (b *Builder) ExitCreateModuleStatement(ctx *parser.CreateModuleStatementContext) {
1111
name := ""
12-
if id := ctx.IDENTIFIER(); id != nil {
13-
name = id.GetText()
12+
if iok := ctx.IdentifierOrKeyword(); iok != nil {
13+
name = identifierOrKeywordText(iok)
1414
}
1515
b.statements = append(b.statements, &ast.CreateModuleStmt{
1616
Name: name,

0 commit comments

Comments
 (0)