on master help sign in
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.

commita39f1e0f9b63833b2d34ae96e0aa176338e0a0c7 authorokezieuc <53785400+okezieuc@users.noreply.github.com> dateMon 12 Oct 2020, 15:26 (6 years ago) parent33128d7
6 files changed+65−1
tests/syntax-tests/highlighted/Hosts/hosts+8 tests/syntax-tests/highlighted/RequirementsTXT/requirements.txt+8 tests/syntax-tests/highlighted/YAML/example.yaml+16 tests/syntax-tests/source/Hosts/hosts+8 tests/syntax-tests/source/RequirementsTXT/requirements.txt+8 tests/syntax-tests/source/YAML/example.yaml+17−1
tests/syntax-tests/highlighted/Hosts/hostsnew file+8
@@ -0,0 +1,8 @@
1+#this is a comment in the hosts file
2+127.0.0.1  localhost
3+
4+192.168.0.1 sample.test #a comment
5+192.160.0.200 try.sample.test try #another comment
6+216.58.223.238 google.com
7+
8+::1 localhost.try ip6-localhost
tests/syntax-tests/highlighted/RequirementsTXT/requirements.txtnew file+8
@@ -0,0 +1,8 @@
1+#this is a sample requirements.txt file
2+
3+django==11.2.0
4+pywheels>=12.4 #a whitespace followed by comments
5+Nuitka<0.6.8.4
6+wxPython>=1.0, <=2.1
7+
8+#this is another comment
tests/syntax-tests/highlighted/YAML/example.yaml+16
@@ -4,6 +4,9 @@
44name: Test User
55username: "testuser"
66other_names: ['Bob', 'Bill', 'George']
7+hexa: 0x11c3 #inline comment
8+octa: 021131
9+lastseen: .NAN
710enabled: true
811locked: false
912groups: 
@@ -13,6 +16,19 @@
1316address: >
1417 123 Alphabet Way
1518 San Francisco, CA
19+bio: |
20+ I am a hardworking person
21+ and a member of the
22+ executive staff
1623phone: null
24+email: ~
1725building_access: yes
1826secure_access: no
27+bulb: On
28+fans: Off
29+emails:
30+ executives:
31+ - bob@example.com
32+ - bill@example.com
33+ supervisors:
34+ - george@example.com
tests/syntax-tests/source/Hosts/hostsnew file+8
@@ -0,0 +1,8 @@
1+#this is a comment in the hosts file
2+127.0.0.1 localhost
3+
4+192.168.0.1 sample.test #a comment
5+192.160.0.200 try.sample.test try #another comment
6+216.58.223.238 google.com
7+
8+::1 localhost.try ip6-localhost
tests/syntax-tests/source/RequirementsTXT/requirements.txtnew file+8
@@ -0,0 +1,8 @@
1+#this is a sample requirements.txt file
2+
3+django==11.2.0
4+pywheels>=12.4 #a whitespace followed by comments
5+Nuitka<0.6.8.4
6+wxPython>=1.0, <=2.1
7+
8+#this is another comment
tests/syntax-tests/source/YAML/example.yaml+17−1
@@ -4,6 +4,9 @@ id: 3595
44name: Test User
55username: "testuser"
66other_names: ['Bob', 'Bill', 'George']
7+hexa: 0x11c3 #inline comment
8+octa: 021131
9+lastseen: .NAN
710enabled: true
811locked: false
912groups:
@@ -13,6 +16,19 @@ groups:
1316address: >
1417 123 Alphabet Way
1518 San Francisco, CA
19+bio: |
20+ I am a hardworking person
21+ and a member of the
22+ executive staff
1623phone: null
24+email: ~
1725building_access: yes
18−secure_access: no
26+secure_access: no
27+bulb: On
28+fans: Off
29+emails:
30+ executives:
31+ - bob@example.com
32+ - bill@example.com
33+ supervisors:
34+ - george@example.com