Skip to content

Commit

Permalink
Merge pull request #394 from mataha/feat/tmprefs/case-insensitive
Browse files Browse the repository at this point in the history
Add support for `TM_COMMENT_CASE_INSENSITIVE`
  • Loading branch information
FichteFoll authored Jan 28, 2024
2 parents f284e47 + 85ab622 commit c17e46e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"scope": "meta.shellVariable.name.tmPreferences - (meta.tag - punctuation.definition.tag.begin.xml)",
"completions": [
{
"trigger": "TM_COMMENT_CASE_INSENSITIVE",
"kind": ["variable", "v", "shellVariable"],
},
{
"trigger": "TM_COMMENT_CASE_INSENSITIVE_2",
"kind": ["variable", "v", "shellVariable"],
},
{
"trigger": "TM_COMMENT_DISABLE_INDENT",
"kind": ["variable", "v", "shellVariable"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ contexts:
- include: string-end
- include: value-content
- include: comments
- match: \bTM_COMMENT_(?:START|END|DISABLE_INDENT)(?:_[2-9])?\b
- match: \bTM_COMMENT_(?:START|END|DISABLE_INDENT|CASE_INSENSITIVE)(?:_[2-9])?\b
scope: entity.name.constant.shellVariable.tmPreferences support.constant.shellVariable.tmPreferences
push: after-number
- match: \b\w+\b
Expand Down
8 changes: 8 additions & 0 deletions Package/TextMate Preferences/syntax_test_tmPreferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@
<string>yes</string>
</dict>
<dict>
<!-- ^ meta.inside-plist.tmPreferences meta.inside-dict.main.tmPreferences meta.inside-dict.settings.tmPreferences meta.inside-array.shellVariables.tmPreferences meta.inside-dict.shellVariables -->
<key>name</key>
<string>TM_COMMENT_CASE_INSENSITIVE_2</string>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.inside-value.string.plist support.constant.shellVariable.tmPreferences -->
<key>value</key>
<string>yes</string>
</dict>
<dict>
<!-- ^ meta.inside-plist.tmPreferences meta.inside-dict.main.tmPreferences meta.inside-dict.settings.tmPreferences meta.inside-array.shellVariables.tmPreferences meta.inside-dict.shellVariables -->
<key>name</key>
<string>test</string>
Expand Down

0 comments on commit c17e46e

Please sign in to comment.