mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-07 16:34:13 +01:00
Add 'requirements.txt' syntax
This commit is contained in:
parent
8ec96da9f0
commit
c7d08cfcfd
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -129,3 +129,6 @@
|
||||
[submodule "assets/syntaxes/Org mode"]
|
||||
path = assets/syntaxes/Org mode
|
||||
url = https://github.com/jezcope/Org.tmbundle.git
|
||||
[submodule "assets/syntaxes/requirementstxt"]
|
||||
path = assets/syntaxes/requirementstxt
|
||||
url = https://github.com/wuub/requirementstxt
|
||||
|
1
assets/syntaxes/requirementstxt
vendored
Submodule
1
assets/syntaxes/requirementstxt
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 775e6dd62aa16f7b28632a200882ff6ad0315b01
|
19
assets/syntaxes/requirementstxt.sublime-syntax
vendored
Normal file
19
assets/syntaxes/requirementstxt.sublime-syntax
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
%YAML 1.2
|
||||
---
|
||||
# http://www.sublimetext.com/docs/3/syntax.html
|
||||
name: requirements.txt
|
||||
file_extensions:
|
||||
- requirements.txt
|
||||
scope: source.requirementstxt
|
||||
contexts:
|
||||
main:
|
||||
- match: (#).*$\n?
|
||||
scope: comment.line.requirementstxt
|
||||
captures:
|
||||
1: punctuation.definition.comment.requirementstxt
|
||||
- match: '(?i)^[a-z0-9_\-\.]+'
|
||||
scope: string.package_name.requirementstxt
|
||||
- match: (?i)==|<|<=|>=|>
|
||||
scope: keyword.operator.logical.punctuation.requirementstxt
|
||||
- match: '(?i)\d+\.[\da-z\-_\.]*'
|
||||
scope: constant.numeric.verions.requirementstxt
|
Loading…
Reference in New Issue
Block a user