mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-01 10:52:24 +01: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:
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
|
||||
|
Reference in New Issue
Block a user