Skip to content

Configuring is_formattable_syntax #58

Closed
@saveman71

Description

@saveman71

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?

def is_formattable_syntax(view):
syntaxes = ['Elixir', 'EEx', 'Elixir (EEx)', 'HTML (EEx)', 'HTML (HEEx)', 'HTML (Surface)']
return is_one_of_syntaxes(view, syntaxes)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions