Skip to content

Commit 2c22334

Browse files
committed
Release 1.2.1
1 parent 388ad86 commit 2c22334

File tree

5 files changed

+44
-39
lines changed

5 files changed

+44
-39
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
## 1.2.1
2+
- [language.lua] More closely match WoW's Lua 5.1 environement: functions like `tinsert()`, `table.getn()`, `table.foreach()`... actually exist in WoW so we don't tag them as removed or deprecated anymore.
3+
- [language.lua] Fixed a typo in `'RightButton'`
4+
- [language.lua] Added a few more identifiers
5+
- [general] Reworked and simplified [Readme.md](Readme.md)
6+
17
## 1.2.0
28
- [language.lua] Added some more identifiers to match up WoW 7.2.0
39
- [snippets] New: 80+ code snippets, courtesy of m4xc4v413r4
4-
- [themes] Incorporated the latest (1.11) VS Code default themes
5-
- [general] Cleaned up a few directory
10+
- [themes] Incorporated the latest (1.11) VS Code default themes
11+
- [general] Cleaned up directories
612

713
## 1.1.11
814
- [language.lua] Added some more identifiers to match up WoW 7.1.5

README.md

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
This World of Warcraft addon developer toolset for VS Code includes an improved Lua language grammar with WoW API knowledge, a .toc file grammar, colorization for both .lua source and .toc files, and more.
77

8+
**Notice:** wow-bundle is NOT a generic Lua colorizer, it is closely bound to WoW specificities and may not be adapted to other environments.
9+
810

911
## Features
1012

@@ -18,57 +20,50 @@ This World of Warcraft addon developer toolset for VS Code includes an improved
1820

1921
### Grammars
2022

21-
#### Lua 5.1 language
23+
#### > Lua 5.1 language
2224

2325
wow-bundle replaces VS Code's built-in Lua language grammar. Changes worth noticing are:
2426

2527
* **OO-style string functions** support, ie. both `string.upper(mystring)` and `mystring:upper()` are supported
2628
* **Full metamethods** support
2729
* **Quoted string constants** as used or returned by the `collectgarbage()`, `date()` and `type()` functions and the `__mode()` metamethod
2830
* Better **character escapes** inside strings: Unicode entities, decimal and hexadecimal values and control chars
29-
* **Deprecated features** warning: `table.foreach`/`foreachi`, `table.getn`/`setn`, `string.gfind()`...
3031

31-
#### World of Warcraft API
3232

33-
wow-bundle's Lua grammar also tags a bunch of WoW-related stuff with these comprehensive scopes:
33+
#### > World of Warcraft API
3434

35-
* ~~**support.function.wow-language.lua** - Blizzard's extensions to the Lua language like `wipe()`, `strjoin()`, etc.~~ No more since 1.1.0, see change log.
36-
* **support.function.wow-api.lua** - World of Warcraft API functions, with 2 sub-scopes:
37-
* **support.function.wow-api.nocombat.lua** - API functions that can't be called while in combat
38-
* **support.function.wow-api.protected.lua** - API functions that can be called only from secure code
39-
* **support.function.wow-library.lua** - Library functions written in Lua (mostly used by UI code)
40-
* **support.variable.object.wow-libray.lua** - Global objects like `UIParent`, `GameFontNormal` and such
41-
* **support.variable.value.wow-library.lua** - Global variables like `HIGHLIGHT_FONT_COLOR_CODE`, `UIDROPDOWNMENU_INIT_MENU` and such
42-
* **support.class.method.wow-api.lua** - Widgets methods like `:AddLine()`, `:SetTexture()` and such
43-
* **support.constant.string-parameter.wow-api.lua** - Common function parameters like `'CheckButton'`, `'BOTTOMLEFT'`, `'OVERLAY'`, `'player'` and such
44-
* **support.constant.script-handler.wow-api.lua** - Widgets event handler names like `'OnEnter'`, `'OnShow'` and such
45-
* **support.constant.event-name.wow-api.lua** - Game events like `'PLAYER_ENTERING_WORLD'`, `'VARIABLES_LOADED'` and such
46-
* **invalid.removed.lua** and **invalid.deprecated.lua** - Removed and/or deprecated stuff in the API
35+
wow-bundle's Lua grammar also tags a bunch of WoW-related stuff:
4736

48-
These scopes make it super-easy to colorize everyting WoW-related. See **Colorization** below for details.
37+
* **Blizzard's extensions to the Lua language** like `wipe()`, `strjoin()`, etc.
38+
* **World of Warcraft API functions**, with support for functions that can't be called while in combat and functions that can be called only from secure code
39+
* **WoW Library functions** written in Lua (mostly used by UI code)
40+
* **Global objects** like `UIParent`, `GameFontNormal` and such
41+
* **Global variables** like `HIGHLIGHT_FONT_COLOR_CODE`, `UIDROPDOWNMENU_INIT_MENU` and such
42+
* **Widgets methods** like `:AddLine()`, `:SetTexture()` and such
43+
* **Common function parameters** like `'CheckButton'`, `'BOTTOMLEFT'`, `'OVERLAY'`, `'player'` and such
44+
* **Widgets event handler names** like `'OnEnter'`, `'OnShow'` and such
45+
* **Game events** like `'PLAYER_ENTERING_WORLD'`, `'VARIABLES_LOADED'` and such
46+
* Removed and/or deprecated stuff in the API
4947

5048
![lua](images/lua.png)
5149

5250

5351
#### Toc files
5452

55-
Also included is a simple grammar for `.toc` files with the following scopes:
56-
57-
* **keyword.control.toc** - keywords like `## Interface`, `## Author` and such
58-
* **keyword.control.x.toc** - X-keywords like `## X-Date`, `## X-Website` and such
53+
Also included is a simple grammar for `.toc` files with support for keywords (like `## Interface`, `## Author` and such) and X-keywords (like `## X-Date`, `## X-Website` and such)
5954

6055
![toc](images/toc.png)
6156

6257

6358
### Colorization
6459

65-
All VS Code themes should word fine with these scopes as long as they follow [the standard scope naming convention](https://manual.macromates.com/en/language_grammars).
60+
All VS Code themes should word fine with wow-bundle as long as they follow [the standard scope naming convention](https://manual.macromates.com/en/language_grammars).
6661

67-
However, for further colorization granularity, wow-bundle also includes four specific theme based on VS Code's default themes and called **Light+ (WoW)**, **Dark+ (WoW)**, **Monokai (WoW)** and **Monokai Dimmed (Wow)**. To choose one of these themes, open the Color Theme picker with **File** > **Preferences** > **Color Theme** (or **Code** > **Preferences** > **Color Theme** on Mac).
62+
However, for further colorization granularity, wow-bundle also includes four specific theme based on VS Code's default themes and called **Light+ (WoW)**, **Dark+ (WoW)**, **Monokai (WoW)** and **Monokai Dimmed (WoW)**. To choose one of these themes, open the Color Theme picker with **File** > **Preferences** > **Color Theme** (or **Code** > **Preferences** > **Color Theme** on Mac).
6863

6964
![themes](images/themes.gif)
7065

71-
wow-bundle's themes only colorizes the scopes described above and does not interfere with VS Code default colors for Lua or any other language you may use.
66+
wow-bundle's themes do not interfere with VS Code default colors for Lua or any other language you may use.
7267

7368
>New since 1.0.1: I do however add italics to ALL comments ~~and underline to invalid/deprecated keywords~~.
7469

0 commit comments

Comments
 (0)