Skip to content

Commit

Permalink
chore: add rule for Python requirements.txt files
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Feb 4, 2024
1 parent 8de7af5 commit 4a6f061
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions AutoSetSyntax.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,17 @@
}
]
},
{
"comment": "Python requirements.txt from https://packagecontrol.io/packages/requirementstxt",
"syntaxes": ["scope:source.requirementstxt", "scope:source.pip-requirements"],
"selector": "text.plain",
"rules": [
{
"constraint": "name_contains_regex",
"args": ["^requirements([\\-_.].*)?.txt$"]
}
]
},
{
"comment": "\"Ruby on Rails\" project",
"syntaxes": "scope:source.ruby.rails",
Expand Down

0 comments on commit 4a6f061

Please sign in to comment.