dataform icon indicating copy to clipboard operation
dataform copied to clipboard

Syntax highlighting breaks on regular expression

Open dragonlobster opened this issue 1 year ago • 0 comments

Dataform GCP syntax highlighting is very buggy and problematic. Just one simple example, it breaks the moment you add any regular expression:

select REGEXP_REPLACE(JSON_QUERY(a.json_field, "$.jsonKey"), r'([\'\"])', '') as VALUE
FROM table a
WHERE a.some_field > 1;

This is a screenshot from the GCP editor for Dataform:

image

Even markdown syntax highlighting gets it right where as dataform can't.

Originally posted by @dragonlobster in https://github.com/dataform-co/dataform/issues/1589#issuecomment-1867137197

dragonlobster avatar Dec 28 '23 09:12 dragonlobster