Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax: Fix hidden_file_extensions key #374

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ contexts:
1: string.unquoted.plain.out.yaml storage.type.extends.sublime-syntax
2: punctuation.separator.key-value.yaml

- match: ((?:file|hidden)_extensions)\s*(:)(?=\s|$)
- match: ((?:hidden_)?file_extensions)\s*(:)(?=\s|$)
captures:
1: string.unquoted.plain.out.yaml entity.name.tag.yaml
2: punctuation.separator.key-value.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ file_extensions: [a, b]
#^^^^^^^^^^^^^^ string.unquoted.plain.out.yaml entity.name.tag.yaml
# ^^^^^^ meta.flow-sequence.yaml
# ^ string
hidden_extension: [a, b]
#^^^^^^^^^^^^^^^ string.unquoted.plain.out.yaml entity.name.tag.yaml
# ^^^^^^ meta.flow-sequence.yaml
# ^ string
hidden_file_extensions: [a, b]
#^^^^^^^^^^^^^^^^^^^^^ string.unquoted.plain.out.yaml entity.name.tag.yaml
# ^^^^^^ meta.flow-sequence.yaml
# ^ string
first_line_match: azx
#^^^^^^^^^^^^^^^ keyword.other.first_line_match.sublime-syntax
# ^^^ meta.expect-regexp source.regexp
Expand Down
2 changes: 1 addition & 1 deletion plugins/syntax_dev/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SyntaxDefCompletionsListener(sublime_plugin.ViewEventListener):
('contexts', KIND_HEADER_DICT, 'The syntax contexts.'),
# list keys
('file_extensions', KIND_HEADER_LIST, "The list of file extensions."),
('hidden_extensions', KIND_HEADER_LIST, "The list of hidden file extensions.")
('hidden_file_extensions', KIND_HEADER_LIST, "The list of hidden file extensions.")
))

base_completions_contexts = format_static_completions(templates=(
Expand Down