Skip to content

Commit 6be6c3a

Browse files
committed
Updated changelog and readme
1 parent c1ca39f commit 6be6c3a

File tree

3 files changed

+72
-7
lines changed

3 files changed

+72
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to the "ZH-HiLi" extension will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7-
## [Unreleased]
7+
## [0.2.0] -
8+
9+
### Added
10+
- Added illigal character captures for lonely End statements, after module assignemnt or object definition.
11+
12+
### Changed
13+
- Rewrote tmLanguage.json file with look ahead and behinds instead of direct lookup.
14+
15+
## [0.1.0] - 2024-01-22
816

917
- Initial release

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
## Introduction
66
**ZeroHour-Highlight** is a simple syntax highlighter for map.ini files in Command & Conquer Generals Zero Hour. This project aims to provide a simple and easy syntax highlighting to help find errors, structure and understand the map.ini file.
7-
This project don't have any warning or error handling this will be handled in [ZeroSyntax-Diagnostics](https://github.com/ViTeXFTW/ZeroSyntax-Diagnostics)
8-
The project will firstly focus on supporting map.ini files which works in the basegame (not modded).
97

108
## Showcase
119

@@ -15,9 +13,6 @@ The project will firstly focus on supporting map.ini files which works in the ba
1513
### ZeroSyntax Highlighting
1614
![image](https://github.com/ViTeXFTW/ZeroSyntax-Highlight/assets/90150876/3c63c537-2e6f-40b1-b23a-9b1eea6aba4c)
1715

18-
19-
20-
2116
## Contributing
2217
For contributing to this project you will need to fork the repository to get your own copy. In you own copy you can change and manipulate the program. When you are satisfied with your solution you create a **Pull Request** and an administator will look at it.
2318
Should there be any issues with the submitted code a comment will be left on the **Pull Request** and will first be accepted when all issues have been fixed.

syntaxes/ini.tmLanguage.json

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,76 @@
66
"include": "#Inline-Comment"
77
},
88
{
9-
"include": "#Object-Class"
9+
"include": "#ObjectRelated-class"
1010
},
1111
{
1212
"match": "([Ee]nd|END)",
1313
"name": "invalid.illegal.ini"
1414
}
1515
],
1616
"repository": {
17+
"ObjectRelated-class": {
18+
"patterns": [
19+
{
20+
"include": "#Object-Class"
21+
},
22+
{
23+
"include": "#ObjectReskin-class"
24+
}
25+
]
26+
},
27+
"ObjectReskin-class": {
28+
"begin": "(^[ \\t]+)?(ObjectReskin)[ \\t]+([a-zA-Z_][\\w%]*)[ \\t]+([a-zA-Z_][\\w%]*)",
29+
"beginCaptures": {
30+
"1": {
31+
"name": "punctuation.whitespace.ini"
32+
},
33+
"2": {
34+
"name": "keyword.control.ini"
35+
},
36+
"3": {
37+
"name": "entity.name.type.class.ini"
38+
},
39+
"4": {
40+
"name": "entity.name.type.class.ini"
41+
}
42+
},
43+
"end": "(^[ \\t]+)?([Ee]nd|END)",
44+
"endCaptures": {
45+
"1": {
46+
"name": "punctuation.whitespace.ini"
47+
},
48+
"2": {
49+
"name": "keyword.control.ini"
50+
}
51+
},
52+
"patterns": [
53+
{
54+
"include": "#Inline-Comment"
55+
},
56+
{
57+
"include": "#Object-AddModule"
58+
},
59+
{
60+
"include": "#Object-RemoveModule"
61+
},
62+
{
63+
"include": "#Object-Modules"
64+
},
65+
{
66+
"include": "#Object-PropertyBlocks"
67+
},
68+
{
69+
"include": "#Locomotor-Assignment"
70+
},
71+
{
72+
"include": "#General-Assignment"
73+
},
74+
{
75+
"include": "#Invalid-Assignment"
76+
}
77+
]
78+
},
1779
"Object-Class": {
1880
"begin": "(^[ \\t]+)?(Object)[ \\t]+([a-zA-Z_][\\w%]*)",
1981
"beginCaptures": {

0 commit comments

Comments
 (0)