-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
Description
I'm using a custom syntax that extends one from this project (see at the bottom of https://github.com/SublimeText/AlpineJS)
%YAML 1.2
---
# http://www.sublimetext.com/docs/syntax.html
name: HTML (HEEx, AlpineJS)
scope: text.html.heex.alpinejs
version: 2
extends:
- Packages/ElixirSyntax/syntaxes/HTML (HEEx).sublime-syntax
- Packages/AlpineJS/Syntaxes/HTML (AlpineJS).sublime-syntax
How would we go about configuring this static list so that any user extended syntax can be formatted?
elixir-sublime-syntax/commands/utils.py
Lines 31 to 33 in 6122ca0
def is_formattable_syntax(view): | |
syntaxes = ['Elixir', 'EEx', 'Elixir (EEx)', 'HTML (EEx)', 'HTML (HEEx)', 'HTML (Surface)'] | |
return is_one_of_syntaxes(view, syntaxes) |