Skip to content

2.1.0

Compare
Choose a tag to compare
@ccampbell ccampbell released this 04 Jul 17:15
· 36 commits to master since this release
  • Fixed issue where passing null or false for a match name would result in a runtime error
  • Fixed issue where strings were not correctly highlighted following a comma
  • Fixed issue where javascript selector $ was not correctly highlighted all the time
  • Fixed crash if you do not include an inherited language in your build/page
  • Fixed issue where html boolean attributes with dashes were not correctly highlighted
  • Fixed issue where comments following certain strings did not highlight correctly
  • Updated keyword matching to not match function calls
  • Updated language grammars for golang to use proper scopes and added tests
  • Added SQL language grammar
  • Added async and await keywords to C# grammar
  • Added ability to remove languages dynamically using Rainbow.remove
  • Refactored the regex matching code to no longer process matches recursively (see #197 for more information). Should also make everything a bit faster.