You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
+
1
7
## 1.2.0
2
8
-[language.lua] Added some more identifiers to match up WoW 7.2.0
3
9
-[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
6
12
7
13
## 1.1.11
8
14
-[language.lua] Added some more identifiers to match up WoW 7.1.5
Copy file name to clipboardExpand all lines: README.md
+19-24Lines changed: 19 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
6
6
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.
7
7
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
+
8
10
9
11
## Features
10
12
@@ -18,57 +20,50 @@ This World of Warcraft addon developer toolset for VS Code includes an improved
18
20
19
21
### Grammars
20
22
21
-
#### Lua 5.1 language
23
+
#### > Lua 5.1 language
22
24
23
25
wow-bundle replaces VS Code's built-in Lua language grammar. Changes worth noticing are:
24
26
25
27
***OO-style string functions** support, ie. both `string.upper(mystring)` and `mystring:upper()` are supported
26
28
***Full metamethods** support
27
29
***Quoted string constants** as used or returned by the `collectgarbage()`, `date()` and `type()` functions and the `__mode()` metamethod
28
30
* Better **character escapes** inside strings: Unicode entities, decimal and hexadecimal values and control chars
wow-bundle's Lua grammar also tags a bunch of WoW-related stuff with these comprehensive scopes:
33
+
#### > World of Warcraft API
34
34
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:
47
36
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
49
47
50
48

51
49
52
50
53
51
#### Toc files
54
52
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)
59
54
60
55

61
56
62
57
63
58
### Colorization
64
59
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).
66
61
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).
68
63
69
64

70
65
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.
72
67
73
68
>New since 1.0.1: I do however add italics to ALL comments ~~and underline to invalid/deprecated keywords~~.
0 commit comments