Dialect objects now have a public spec
property holding their configuration.
Fix a bug where tokenizing of block comments got confused when nested comment start/end markers appeared directly next to each other.
Fix syntax tree node names for curly and square brackets, which had their names swapped.
The new schemas
config option can be used to provide custom completion objects for schema completions.
Fix tokenizing of double-$
strings in SQL dialects that support them.
Make sure the language object has a name.
Fix tokenizing of --
line comments.
Schema-based completion now understands basic table alias syntax, and will take it into account when looking up completions.
The new unquotedBitLiterals
dialect option controls whether 0b01
syntax is recognized.
Dialects now allow a treatBitsAsBytes
option to allow any characters inside quoted strings prefixed with b
.
The new doubleDollarQuotedStrings
options to SQL dialects allows parsing of text delimited by $$
as strings. Regenerate readme
Update dependencies to 6.0.0
Schema completion descriptions may now include dots in table names to indicate nested schemas.
Fix a bug where the slash at the end of block comments wasn't considered part of the comment token.
Fix an infinite recursion bug in schemaCompletionSource
.
The schemaCompletion
and keywordCompletion
exports, which returned extensions, have been replaced with schemaCompletionSource
and keywordCompletionSource
, which return completion sources. The old exports will remain available until the next major version.
Fix autocompletion on columns when the table name is written with upper-case letters. Move to @lezer/highlight
Remove duplicate keywords/types in dialect configurations.
Fix a bug that caused characters directly before a space to be tokenized incorrectly.
Fix a bug that broke tokenization of keywords.
Fix incorrect versions for @lezer dependencies.
Update dependencies to 0.19.0
Update dependencies to 0.18.
Fix bad syntax tree creation when the input ends with an unfinished quoted identifier.
The package now also exports a CommonJS module.
First numbered release.