diff --git a/services/web/frontend/js/features/source-editor/lezer-bibtex/bibtex.grammar b/services/web/frontend/js/features/source-editor/lezer-bibtex/bibtex.grammar index eb3ac4b593..1fa519d4bc 100644 --- a/services/web/frontend/js/features/source-editor/lezer-bibtex/bibtex.grammar +++ b/services/web/frontend/js/features/source-editor/lezer-bibtex/bibtex.grammar @@ -5,7 +5,7 @@ @tokens { Other { ![@ \t\n] ![@]* } whiteSpace { $[\t\n ]+ } - Identifier { $[a-zA-Z:_0-9-/]+ } + Identifier { ![,{} \t\n%]+ } StringName { $[a-zA-Z:_] $[a-zA-Z:_0-9-]* } FieldName {$[a-zA-Z-_0-9]+} LiteralString {