mirror of
https://github.com/sharkdp/bat
synced 2024-11-18 15:26:16 +00:00
added new syntax highlighting files
I added a sample etc/hosts file and a sample requirements.txt file. I didn't know there was already a sample YAML file because it wasn't ticked in the issue so I added some extra syntax that I had in my own to the previous example.yaml file.
This commit is contained in:
parent
33128d75f2
commit
a39f1e0f9b
8
tests/syntax-tests/highlighted/Hosts/hosts
Normal file
8
tests/syntax-tests/highlighted/Hosts/hosts
Normal file
@ -0,0 +1,8 @@
|
||||
[38;2;117;113;94m#this is a comment in the hosts file[0m
|
||||
[38;2;190;132;255m127.0.0.1[0m[38;2;248;248;242m [0m[38;2;249;38;114m localhost[0m
|
||||
|
||||
[38;2;190;132;255m192.168.0.1[0m[38;2;248;248;242m sample.test [0m[38;2;117;113;94m#a comment[0m
|
||||
[38;2;190;132;255m192.160.0.200[0m[38;2;248;248;242m try.sample.test try [0m[38;2;117;113;94m#another comment[0m
|
||||
[38;2;190;132;255m216.58.223.238[0m[38;2;248;248;242m google.com[0m
|
||||
|
||||
[38;2;190;132;255m::1[0m[38;2;249;38;114m localhost[0m[38;2;248;248;242m.try[0m[38;2;249;38;114m ip6-localhost[0m
|
@ -0,0 +1,8 @@
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94mthis is a sample requirements.txt file[0m
|
||||
|
||||
[38;2;230;219;116mdjango[0m[38;2;249;38;114m==[0m[38;2;190;132;255m11.2.0[0m
|
||||
[38;2;230;219;116mpywheels[0m[38;2;249;38;114m>=[0m[38;2;190;132;255m12.4[0m[38;2;248;248;242m [0m[38;2;117;113;94m#[0m[38;2;117;113;94ma whitespace followed by comments[0m
|
||||
[38;2;230;219;116mNuitka[0m[38;2;249;38;114m<[0m[38;2;190;132;255m0.6.8.4[0m
|
||||
[38;2;230;219;116mwxPython[0m[38;2;249;38;114m>=[0m[38;2;190;132;255m1.0[0m[38;2;248;248;242m, [0m[38;2;249;38;114m<[0m[38;2;248;248;242m=[0m[38;2;190;132;255m2.1[0m
|
||||
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94mthis is another comment[0m
|
@ -4,6 +4,9 @@
|
||||
[38;2;249;38;114mname[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116mTest User[0m
|
||||
[38;2;249;38;114musername[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mtestuser[0m[38;2;230;219;116m"[0m
|
||||
[38;2;249;38;114mother_names[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;248;248;242m[[0m[38;2;230;219;116m'[0m[38;2;230;219;116mBob[0m[38;2;230;219;116m'[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mBill[0m[38;2;230;219;116m'[0m[38;2;248;248;242m,[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mGeorge[0m[38;2;230;219;116m'[0m[38;2;248;248;242m][0m
|
||||
[38;2;249;38;114mhexa[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0x[0m[38;2;190;132;255m11c3[0m[38;2;248;248;242m [0m[38;2;117;113;94m#[0m[38;2;117;113;94minline comment[0m
|
||||
[38;2;249;38;114mocta[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;190;132;255m21131[0m
|
||||
[38;2;249;38;114mlastseen[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m.[0m[38;2;190;132;255mNAN[0m
|
||||
[38;2;249;38;114menabled[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m
|
||||
[38;2;249;38;114mlocked[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mfalse[0m
|
||||
[38;2;249;38;114mgroups[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m
|
||||
@ -13,6 +16,19 @@
|
||||
[38;2;249;38;114maddress[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;249;38;114m>[0m
|
||||
[38;2;230;219;116m 123 Alphabet Way[0m
|
||||
[38;2;230;219;116m San Francisco, CA[0m
|
||||
[38;2;249;38;114mbio[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;249;38;114m|[0m
|
||||
[38;2;230;219;116m I am a hardworking person[0m
|
||||
[38;2;230;219;116m and a member of the[0m
|
||||
[38;2;230;219;116m executive staff[0m
|
||||
[38;2;249;38;114mphone[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mnull[0m
|
||||
[38;2;249;38;114memail[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255m~[0m
|
||||
[38;2;249;38;114mbuilding_access[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255myes[0m
|
||||
[38;2;249;38;114msecure_access[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mno[0m
|
||||
[38;2;249;38;114mbulb[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mOn[0m
|
||||
[38;2;249;38;114mfans[0m[38;2;248;248;242m:[0m[38;2;248;248;242m [0m[38;2;190;132;255mOff[0m
|
||||
[38;2;249;38;114memails[0m[38;2;248;248;242m:[0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114mexecutives[0m[38;2;248;248;242m:[0m
|
||||
[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116mbob@example.com[0m
|
||||
[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116mbill@example.com[0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114msupervisors[0m[38;2;248;248;242m:[0m
|
||||
[38;2;248;248;242m [0m[38;2;248;248;242m-[0m[38;2;248;248;242m [0m[38;2;230;219;116mgeorge@example.com[0m
|
||||
|
8
tests/syntax-tests/source/Hosts/hosts
Normal file
8
tests/syntax-tests/source/Hosts/hosts
Normal file
@ -0,0 +1,8 @@
|
||||
#this is a comment in the hosts file
|
||||
127.0.0.1 localhost
|
||||
|
||||
192.168.0.1 sample.test #a comment
|
||||
192.160.0.200 try.sample.test try #another comment
|
||||
216.58.223.238 google.com
|
||||
|
||||
::1 localhost.try ip6-localhost
|
@ -0,0 +1,8 @@
|
||||
#this is a sample requirements.txt file
|
||||
|
||||
django==11.2.0
|
||||
pywheels>=12.4 #a whitespace followed by comments
|
||||
Nuitka<0.6.8.4
|
||||
wxPython>=1.0, <=2.1
|
||||
|
||||
#this is another comment
|
@ -4,6 +4,9 @@ id: 3595
|
||||
name: Test User
|
||||
username: "testuser"
|
||||
other_names: ['Bob', 'Bill', 'George']
|
||||
hexa: 0x11c3 #inline comment
|
||||
octa: 021131
|
||||
lastseen: .NAN
|
||||
enabled: true
|
||||
locked: false
|
||||
groups:
|
||||
@ -13,6 +16,19 @@ groups:
|
||||
address: >
|
||||
123 Alphabet Way
|
||||
San Francisco, CA
|
||||
bio: |
|
||||
I am a hardworking person
|
||||
and a member of the
|
||||
executive staff
|
||||
phone: null
|
||||
email: ~
|
||||
building_access: yes
|
||||
secure_access: no
|
||||
bulb: On
|
||||
fans: Off
|
||||
emails:
|
||||
executives:
|
||||
- bob@example.com
|
||||
- bill@example.com
|
||||
supervisors:
|
||||
- george@example.com
|
Loading…
Reference in New Issue
Block a user