Go: fix highlighting of non-reserved keywords (atoms) #7153

Open
opened 2026-02-02 18:47:53 +01:00 by marijnh · 0 comments
marijnh commented 2026-02-02 18:47:53 +01:00 (Migrated from gitlab.com)

github.com/codemirror/codemirror5@78555dd4ac/mode/go/go.js (L30)

Words in this list are highlighted as special keywords regardless of context. For example, it is valid in Go to create a variable called "new". It should only receive special highlighting when used as the builtin function new(expr), and should be treated as a variable otherwise.

https://github.com/codemirror/codemirror5/blob/78555dd4ac9bc691f081eec8266a01d3fbcc0d4e/mode/go/go.js#L30 Words in this list are highlighted as special keywords regardless of context. For example, it is valid in Go to create a variable called "new". It should only receive special highlighting when used as the builtin function new(expr), and should be treated as a variable otherwise.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5#7153
No description provided.