From 326e84f3021b36c6a94b87e1139de414e68cc1fb Mon Sep 17 00:00:00 2001 From: facelessuser Date: Sat, 15 Aug 2020 09:07:21 -0600 Subject: [PATCH] Browse should capture tmLanguage as well as sublime-syntax files --- ApplySyntax.py | 5 ++++- CHANGES.md | 4 ++++ docs/src/markdown/about/contributing.md | 10 ++++------ support.py | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ApplySyntax.py b/ApplySyntax.py index 168f127..09f0d20 100755 --- a/ApplySyntax.py +++ b/ApplySyntax.py @@ -279,7 +279,10 @@ def run(self): self.syntaxes = [ os.path.splitext(x)[0].replace('Packages/', '', 1) - for x in glob.globfilter(sublime.find_resources('*'), '**/*.sublime-syntax', flags=GLOB_FLAGS) + for x in glob.globfilter( + sublime.find_resources('*'), '**/*.@(sublime-syntax|tmLanguage)', + flags=GLOB_FLAGS | glob.I + ) ] if self.syntaxes: diff --git a/CHANGES.md b/CHANGES.md index 8942e83..2a21ccf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # ApplySyntax +## 4.0.1 + +- **FIX**: "Browse Syntaxes" should show legacy `tmLanguage` files as well as the new `sublime-syntax`. + ## 4.0.0 - **NEW**: All file names are now normalized to `/`, so regex patterns should no longer use `\` to specify path diff --git a/docs/src/markdown/about/contributing.md b/docs/src/markdown/about/contributing.md index a7fff2b..1716eb5 100644 --- a/docs/src/markdown/about/contributing.md +++ b/docs/src/markdown/about/contributing.md @@ -9,6 +9,7 @@ ST3 | Fully supported and actively maintain Contribution from the community is encouraged and can be done in a variety of ways: +- Become a sponsor. - Bug reports. - Reviewing code. - Code patches via pull requests. @@ -17,13 +18,10 @@ Contribution from the community is encouraged and can be done in a variety of wa ## Become a Sponsor :octicons-heart-fill-16:{: .heart-throb} Open source projects take time and money. Help support the project by becoming a sponsor. You can add your support at -any tier you feel comfortable with. No amount is too little. +any tier you feel comfortable with. No amount is too little. We also accept one time contributions via PayPal. -:octicons-mark-github-16: [GitHub Sponsors ](https://github.com/sponsors/facelessuser) - -If you'd like to do a one time contribution, you can do so via PayPal. - -:fontawesome-brands-paypal: [PayPal](https://www.paypal.me/facelessuser) +[:octicons-mark-github-16: GitHub Sponsors](https://github.com/sponsors/facelessuser){: .md-button .md-button--primary } +[:fontawesome-brands-paypal: PayPal](https://www.paypal.me/facelessuser){ .md-button} ## Bug Reports diff --git a/support.py b/support.py index 6aefc8f..af12a06 100644 --- a/support.py +++ b/support.py @@ -5,7 +5,7 @@ import webbrowser import re -__version__ = "4.0.0" +__version__ = "4.0.1" __pc_name__ = 'ApplySyntax' CSS = '''