Skip to content

Commit

Permalink
Merge pull request #374 from deathaxe/pr/fix-hidden-file-extensions-key
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll authored Jul 24, 2022
2 parents 6252dee + a2c33d8 commit 7dc21bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 7dc21bf

Please sign in to comment.