Skip to content

Releases: alsolovyev/Nunjucks

Nunjucks v2.2.1

04 Jan 23:14
5fb45b3
Compare
Choose a tag to compare

Fixes:

  • fix highlight inside HTML tags

Changes:

  • add PHP support
  • improve compatibility with HTML syntax highlighting
  • move context definitions into separate named blocks: nunjucks-statement, nunjucks-expression, and nunjucks-comment
  • add a new prototype context to include nunjucks package globally
  • simplify the main context with a single reference to meta.template.njk
  • update statement, expression, and comment blocks to use individual includes for relevant Nunjucks elements

Nunjucks v2.1.0

04 Jan 18:03
5fb45b3
Compare
Choose a tag to compare

Fixes:

  • fix highlight inside HTML tags

Changes:

  • add PHP support
  • improve compatibility with HTML syntax highlighting
  • move context definitions into separate named blocks: nunjucks-statement, nunjucks-expression, and nunjucks-comment
  • add a new prototype context to include nunjucks package globally
  • simplify the main context with a single reference to meta.template.njk
  • update statement, expression, and comment blocks to use individual includes for relevant Nunjucks elements

Nunjucks v2.0.3

31 Dec 09:05
Compare
Choose a tag to compare

Fixes:

  • resolved recursion limit issue ("Apparent recursion within a with_prototype action: 25000 context sanity limit hit" #27)
  • improved compatibility with HTML syntax highlighting

Changes:

  • PHP support has been temporarily removed to fix the "resolved recursion limit issue" and will be added back soon

Nunjucks v2.0.2

22 Jan 15:47
ef3c78d
Compare
Choose a tag to compare

Fixes

  • fix syntax highlighting in PHP files
  • fix typo (no such context scope:text.html.njk#nunjucks-keywordss-other)

Nunjucks st3-v2.0.2

04 Jan 23:16
ef3c78d
Compare
Choose a tag to compare

This release is dedicated to supporting Sublime Text versions up to 4180. It ensures compatibility for users who prefer or require older versions of Sublime Text.

Important Note:

Starting from Sublime Text version 4186, a breaking change causes the following error (#27):

Error loading syntax file "Packages/Nunjucks/Syntaxes/Nunjucks.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit.

This issue is resolved in the next release, which is designed to work with Sublime Text 4186 and newer versions.
This version serves as a stable option for anyone using Sublime Text 4180 or earlier.

If you’ve encountered the above error in newer versions of Sublime Text, please upgrade to the next release.

Nunjucks v2.0.1

17 Jan 14:34
6ba7a06
Compare
Choose a tag to compare

Fixes:

  • highlighting chain filters 90d2c2a
  • highlighting of called methods 4609cd4
  • highlighting Boolean keywords in parentheses a94f9e8

Improvements:

  • indentation rules for curly braces 3fbd4e8
  • improve macros scope names for better highlighting in different schemes 7fee28f

Nunjucks v2.0.0

12 Jan 12:46
afdbcd6
Compare
Choose a tag to compare

Updates

  • Syntax highlighting has been completely rewritten from scratch
    • clear and easily maintainable code
    • improved scope names
  • Autocompletions have been added for all available Nunjucks tags
  • The scope names for snippets and completions have been rewritten so that they only trigger in the right places
  • Built-in functions and filters of the 'Nunjucks' templating engine have been added
  • Key bindings have been customized to automatically add spaces inside brackets
    • pressing shift + { twice will turn into {{ | }}
    • pressing shift + % within {} will turn into {% | %}
    • pressing shift + # within {} will turn into {# | #}
  • Automatic indentation rules have been added
  • A menu has been added for more convenient work with the package

Nunjucks syntax highlighting v1.3.0

07 Jan 19:42
d68bcde
Compare
Choose a tag to compare

New features

Automatically add spaces inside brackets:

  • pressing shift + { twice will turn into {{ }}
  • pressing shift + % within {} will turn into {% %}

Add package menu:

  • key bindings
  • documentation
  • issues

Nunjucks syntax highlighting v1.2.4

07 Jan 13:59
545cfd1
Compare
Choose a tag to compare

Fixes:

  • incorrect highlighting of Booleans #11
  • negative numbers are not highlighted #12
  • keywords are not highlighted correctly #13
  • code refactoring

Nunjucks syntax highlighting v1.2.3

06 Jan 19:57
a761e3b
Compare
Choose a tag to compare
  • fix color of constants in arguments
  • fix single curly brace in the "{" snippet
  • code refactoring