Skip to content

Commit 22e7d3d

Browse files
committed
Rewrite Package (#22)
This commit is basically a complete rewrite of the whole package with every aspect being touched, while re-using as much of it as possible. Supported template languages are: CSS, JavaScript, JSON, HTML, Markdown, XML Syntax definitions extend bundled ones from ST4152+. 1. Package is re-structured to better organize all the supported syntaxes. 2. Snippets (and other resources) are indented using tabs as spaces don't play well with tab-indented target documents. E.g.: If snippets would be indented with spaces but committed to a document using tabs, spaces would remain and cause mixed indentation. Tabs are however converted to the correct number of spaces, when committed to a document using spaces for indentation. 3. a snippet for each tag is added so typing e.g. "if" and hitting tab expands to equivalent {% if ... %} tag. 4. Previous Jinja.sublime-syntax is mainly re-used but improved in various aspects by re-using patterns from Python syntax. It is renamed to "Text (Jinja)" and can be used for templates, which no dedicated syntax is shipped for (e.g.: LaTeX, ...).
1 parent 2fa415d commit 22e7d3d

File tree

115 files changed

+5016
-2132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+5016
-2132
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.github/ export-ignore
22
/.gitattributes export-ignore
33
/.gitignore export-ignore
4-
tests/ export-ignore
54
syntax_test_* export-ignore
5+
*.png export-ignore

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Bug Report
3-
description: File a bug report to address an issue in BetterJinja !
3+
description: File a bug report to address an issue in Jinja2 !
44

55
body:
66
- type: textarea
@@ -38,7 +38,7 @@ body:
3838

3939
- type: input
4040
attributes:
41-
label: BetterJinja version
41+
label: Jinja2 version
4242
placeholder: "e.g. 1.0.0"
4343
validations:
4444
required: true

.github/ISSUE_TEMPLATE/enhancement_or_feature_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: Enhancement or feature request.
3-
description: File an enhancement/feature request to make BetterJinja more amazing !
3+
description: File an enhancement/feature request to make Jinja2 more amazing !
44

55
body:
66
- type: textarea
77
attributes:
88
label: Description of your enhancement/feature request proposal.
99
description: |
10-
A description of what enhancement and (or) feature request, you'd like to see in BetterJinja.
10+
A description of what enhancement and (or) feature request, you'd like to see in Jinja2.
1111
validations:
1212
required: true
1313

.github/workflows/syntax_test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
include:
33-
- build: 4107
34-
default_packages: v4107
35-
- build: 4126
36-
default_packages: v4126
37-
- build: 4143
38-
default_packages: v4143
3933
- build: 4152
4034
default_packages: v4152
4135
- build: 4169

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.cmd

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3636
### Fixed
3737
- Fix package name "Jinja2" in various resource files (fixes #15)
3838
- Fix syntax tests not running (fixes #18)
39-
- Fix snippets' indentation
39+
- Fix snippets' indentation
40+
41+
## [2.0.0]
42+
43+
- Reorganize whole package
44+
- Rewrite all syntax definitons extending ST's (CSS, JavaScript, JSON, HTML, Markdown, XML, YAML)
45+
- fix snippet indentation (now using tabs)

0 commit comments

Comments
 (0)