v3.0.1
3.0.1
Added
- Added errors array to the Lexer#validate() method result, providing details on problematic syntax
- Added Lexer#cssWideKeywords dictionary to list CSS-wide keywords
Changed
- Bumped mdn/data to 2.12.1
- Updated the Lexer's constructor to consider config.cssWideKeywords for overriding the default list
- Expanded the lexer's dump output to include the cssWideKeywords dictionary
- Modified the fork() method to accept a cssWideKeywords option, allowing the addition of new keywords to the existing list
Fixed
- Reverted changes to Block to include { and }, and Atrule and Rule to exclude { and } for a block
- Fixed syntaxes for <basic-shapes>, <absolute-color-function> and <'stroke-opacity'>
Removed
- Removed second parameter (assign) for the callback in the fork() method
- Bumped
mdn/datato 2.12.1 - Added
errorsarray to theLexer#validate()method result, providing details on problematic syntax. - Added CSS wide keyword customization and introspection:
- Added a
Lexer#cssWideKeywordsdictionary to list CSS-wide keywords - Updated the Lexer's constructor to consider
config.cssWideKeywordsfor overriding the default list - Expanded the lexer's dump output to include the
cssWideKeywordsdictionary - Modified the
fork()method to accept acssWideKeywordsoption, allowing the addition of new keywords to the existing list
- Added a
- Reverted changes to
Blockto include{and}, andAtruleandRuleto exclude{and}for ablock(#296) - Removed second parameter (
assign) for the callback in thefork()method (e.g.,syntax.fork((config, assign) => { ... })), as it simply refers toObject.assign() - Fixes in syntaxes:
<basic-shapes>,<absolute-color-function>and<'stroke-opacity'>