Skip to content

add weakDeliminator and additionalDeliminator with keyword, WordDetect, Int,...

jonathan poelen requested to merge jpoelen/syntax-highlighting:kwdelim into master

Some syntaxes use delimiters in keyword list mainly for 2 reasons:

  • To have it in the auto-complete (example Scala: AbstractDocument.AttributeContext with . as delimiter)
  • Because delimiter not the same for all contexts, but this does not work (end-free for ILERPG with - as delimiter or Bash with Int in math expressions because all symbols are a delimiter (currently replaced By AnyChar)).

To work around the issue, all rules that use isWordDelimiter() now have the weakDeliminator and additionalDeliminator attributes.

Merge request reports

Loading