Skip to content

Commit

Permalink
Browse should capture tmLanguage as well as sublime-syntax files
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Aug 15, 2020
1 parent 18d99b3 commit 326e84f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 4 additions & 1 deletion ApplySyntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 4 additions & 6 deletions docs/src/markdown/about/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "4.0.0"
__version__ = "4.0.1"
__pc_name__ = 'ApplySyntax'

CSS = '''
Expand Down

0 comments on commit 326e84f

Please sign in to comment.