Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammar: Keyword #320

Merged
merged 48 commits into from
Mar 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0f2fafd
Loop,WinGet,WinSet
kyklish Jan 20, 2023
34cb5e3
Menu
kyklish Feb 4, 2023
9526f21
Process
kyklish Feb 4, 2023
e119bf5
Loop
kyklish Feb 4, 2023
95293ba
add KEY keyword
kyklish Feb 4, 2023
fe62848
SetCapsLockState,SetNumLockState,SetScrollLockState
kyklish Feb 4, 2023
a8c7b55
CoordMode
kyklish Feb 4, 2023
95ffc58
IfMsgBox,Transform
kyklish Feb 4, 2023
bc6b2d1
SetFormat
kyklish Feb 4, 2023
c12b2d7
FormatTime
kyklish Feb 4, 2023
5907ac5
If in is contains between
kyklish Feb 4, 2023
c1df8df
DriveGet
kyklish Feb 4, 2023
5b60a36
Drive
kyklish Feb 4, 2023
556a792
Gui general
kyklish Feb 4, 2023
0fe4626
test
kyklish Feb 4, 2023
b3da0ee
Gui options
kyklish Feb 4, 2023
0364a23
Gui Add common options
kyklish Feb 4, 2023
32666c7
Gui Add specific options
kyklish Feb 4, 2023
4d7d231
Control,AltTab
kyklish Feb 4, 2023
7698c09
Thread
kyklish Feb 4, 2023
69ccf25
EnvAdd,Progress,SetTimer
kyklish Feb 4, 2023
62112d4
fix EnvAdd
kyklish Feb 4, 2023
efb7700
For...in,ListLines,RegDelete,RegRead,RegWrite,SetRegView
kyklish Feb 5, 2023
886deb8
Gui fix
kyklish Feb 5, 2023
3ae5572
GuiControl
kyklish Feb 5, 2023
3ef8317
GuiControlGet
kyklish Feb 5, 2023
672e85b
Gui fix
kyklish Feb 5, 2023
bbb5d0d
GUI remove X Y keywords
kyklish Feb 5, 2023
993558e
Run,RunWait,DetectHiddenText,DetectHiddenWindows
kyklish Feb 5, 2023
2a4c24d
REVERT ahk-explorer.ahk.snap
kyklish Feb 5, 2023
9420772
comment
kyklish Feb 19, 2023
84032bd
PixelGetColor,PixelSearch
kyklish Feb 19, 2023
aa97c3d
AutoTrim,BlockInput
kyklish Feb 19, 2023
3f2fa1d
FileEncoding
kyklish Mar 4, 2023
f08937f
SysGet
kyklish Mar 4, 2023
ae767c9
StringCaseSense
kyklish Mar 4, 2023
6193705
SoundSet
kyklish Mar 4, 2023
bce32d9
SendMode
kyklish Mar 4, 2023
74309df
MouseClick MouseClickDrag
kyklish Mar 4, 2023
a7c72ce
fix SoundSet
kyklish Mar 4, 2023
bf4f23b
SetMouseDelay SetKeyDelay
kyklish Mar 4, 2023
4eb452c
SetStoreCapsLockMode
kyklish Mar 4, 2023
5712d6d
ControlClick
kyklish Mar 4, 2023
e531bd4
RegEx fix redundant space
kyklish Mar 4, 2023
afa87fb
fix some commands
kyklish Mar 4, 2023
c7355a5
test file
kyklish Mar 4, 2023
0b1c37a
snap files
kyklish Mar 4, 2023
31e28b0
Merge branch 'main' into bug-grammar/keyword
kyklish Mar 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 192 additions & 1 deletion language/ahk.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,200 @@ repository:
name: keyword.keys.ahk
example: LButton
- match: >-
\b(?!MsgBox)(?<!\.)(?i:pixel|mouse|screen|relative|rgb|ltrim|rtrim|join|low|belownormal|normal|abovenormal|high|realtime|ahk_id|ahk_exe|ahk_pid|ahk_class|ahk_group|between|contains|in|is|integer|float|integerfast|floatfast|number|digit|xdigit|alpha|upper|lower|alnum|time|date|not|or|and|alwaysontop|topmost|top|bottom|transparent|transcolor|redraw|region|id|idlast|processname|minmax|controllist|count|list|capacity|statuscd|eject|lock|unlock|label|filesystem|label|setlabel|serial|type|status|static|global|local|byref|seconds|minutes|hours|days|read|parse|logoff|close|error|single|tray|add|rename|check|uncheck|togglecheck|enable|disable|toggleenable|default|nodefault|standard|nostandard|color|delete|deleteall|icon|noicon|tip|click|show|mainwindow|nomainwindow|useerrorlevel|text|picture|pic|groupbox|button|checkbox|radio|dropdownlist|ddl|combobox|listbox|listview|datetime|monthcal|updown|slider|tab|tab2|statusbar|treeview|iconsmall|tile|report|sortdesc|nosort|nosorthdr|grid|hdr|autosize|range|xm|ym|xs|ys|xp|yp|wp|hp|font|resize|owner|submit|nohide|minimize|maximize|restore|noactivate|na|cancel|destroy|center|margin|maxsize|minsize|owndialogs|guiescape|guiclose|guisize|guicontextmenu|guidropfiles|tabstop|section|altsubmit|wrap|hscroll|vscroll|border|top|bottom|buttons|expand|first|imagelist|lines|wantctrla|wantf2|vis|visfirst|number|uppercase|lowercase|limit|password|multi|wantreturn|group|background|bold|italic|strike|underline|norm|backgroundtrans|theme|caption|delimiter|minimizebox|maximizebox|sysmenu|toolwindow|flash|style|exstyle|check3|checked|checkedgray|readonly|password|hidden|left|right|center|notab|section|move|focus|hide|choose|choosestring|text|pos|enabled|disabled|visible|lastfound|lastfoundexist|alttab|shiftalttab|alttabmenu|alttabandmenu|alttabmenudismiss|notimers|interrupt|priority|waitclose|blind|raw|unicode|deref|pow|bitnot|bitand|bitor|bitxor|bitshiftleft|bitshiftright|yes|no|ok|cancel|abort|retry|ignore|tryagain|on|off|all|hkey_local_machine|hkey_users|hkey_current_user|hkey_classes_root|hkey_current_config|hklm|hku|hkcu|hkcr|hkcc|reg_sz|reg_expand_sz|reg_multi_sz|reg_dword|reg_qword|reg_binary|reg_link|reg_resource_list|reg_full_resource_descriptor|reg_resource_requirements_list|reg_dword_big_endian|alwayson|alwaysoff|dpiscale|parent|reg|files|base)(?!\[|\(|\.)\b
\b(?!MsgBox)(?<!\.)(?i:ahk_id|ahk_exe|ahk_pid|ahk_class|ahk_group|not|or|and|static|global|local|byref|error|single|GuiEscape|GuiClose|GuiSize|GuiContextMenu|GuiDropFiles|buttons|lines|blind|raw|all|base)(?!\[|\(|\.)\b
name: keyword.other.ahk
example: text
# TEMPLATE
# General Command
# - match: (?i)\b(?<=\bCOMMAND\b\s*,?\s*)(1stPARAM)\b
# - match: (?i)\b(?<=\bCOMMAND\b\s*,?[^,]+,\s*)(2ndPARAM)\b
# - match: (?i)\b(?<=\bCOMMAND\b\s*,?[^,]+,[^,]+,\s*)(3rdPARAM)\b
# Command with specific first parameter 1stPARAM
# - match: (?i)\b(?<=\bCOMMAND\b\s*,?\s*1stPARAM\s*,\s*)(2ndPARAM)\b
# GUI-like commands with window name "GuiName:" or "%GuiName%:"
# - match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?)(1stPARAM)\b
# GUI-like commands with multiply options in single parameter
# - match: (?i)\b(?<=\bGui\b\s*,?\s*(((\w+|%\w+%):\s*)?SUB_COMMAND\s*,)?[^,]*)(MULTIPLE_OPTIONS_IN_SECOND_PARAM)\b
# TODO D:\SERGEY\Install\Others\Keyboard HotKey\AutoHotkey\Tools\CallTipsForAll\ has list of commands with parameters!!! look at them
- match: (?i)\b(?<=::\s*)(AltTab|ShiftAltTab|AltTabMenu|AltTabAndMenu|AltTabMenuDismiss)\b
name: keyword.other.ahk
# ON/OFF Parameters
- match: (?i)\b(?<=\b(AutoTrim|DetectHiddenText|DetectHiddenWindows|ListLines|SetStoreCapsLockMode)\b\s*,?\s*)(On|Off)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bBlockInput\b\s*,?\s*)(On|Off|Send|Mouse|SendAndMouse|Default|MouseMove|MouseMoveOff)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bControl\b\s*,?\s*)(Check|Uncheck|Enable|Disable|Show|Hide|Style|ExStyle|ShowDropDown|HideDropDown|TabLeft|TabRight|Add|Delete|Choose|ChooseString|EditPaste)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bControlClick\b\s*,?[^,]*,[^,]+,[^,]*,\s*)(L|Left|R|Right|M|Middle|X1|XButton1|X2|XButton2|WheelUp|WU|WheelDown|WD|WheelLeft|WL|WheelRight|WR)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bControlClick\b\s*,?[^,]*,[^,]+,[^,]*,[^,]*,[^,]*,[^,]*)(NA|D|U|Pos)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bCoordMode\b\s*,?\s*)(ToolTip|Pixel|Mouse|Caret|Menu)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bCoordMode\b\s*,?[^,]+,\s*)(Screen|Relative|Window|Client)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bDrive\b\s*,?\s*)(Label|Lock|Unlock|Eject)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bDriveGet\b\s*,?[^,]+,\s*)(List|Capacity|FS|FileSystem|Label|Serial|Type|Status|StatusCD)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bDriveGet\b\s*,?[^,]+,\s*List\s*,\s*)(CDROM|REMOVABLE|FIXED|NETWORK|RAMDISK|UNKNOWN)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\b(EnvAdd|EnvSub)\b\s*,?[^,]+,[^,]+,\s*)(Seconds|Minutes|Hours|Days|S|M|H|D)\b
name: keyword.other.ahk
- match: (?i)\b(?<=(\+|-)=[^,]+,\s*)(Seconds|Minutes|Hours|Days|S|M|H|D)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bFileEncoding\b\s*,?\s*)(UTF-8|UTF-8-RAW|UTF-16|UTF-16-RAW|CP\d{3,5})\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bFor\s+(\w+|%\w+%)\s*(,\s*(\w+|%\w+%))?\s+)(in)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bFormatTime\b\s*,?[^,]+,[^,]*,\s*)(Time|ShortDate|LongDate|YearMonth|YDay|YDay0|WDay|YWeek)\b
name: keyword.other.ahk
# GUI Sub-Commands
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?)(New|Add|Show|Submit|Cancel|Hide|Destroy|Font|Color|Margin|Menu|Minimize|Maximize|Restore|Flash|Default|ListView)\b
name: keyword.other.ahk
# GUI Specific Sub-Commands Options
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*)(Text|Edit|UpDown|Picture|Pic|Button|Checkbox|Radio|DropDownList|DDL|ComboBox|ListBox|ListView|TreeView|Link|Hotkey|DateTime|MonthCal|Slider|Progress|GroupBox|Tab|Tab2|Tab3|StatusBar|ActiveX|Custom)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Show\s*,[^,]*)(Center|xCenter|yCenter|AutoSize|Minimize|Maximize|Restore|NoActivate|NA|Hide)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Submit\s*,\s*)NoHide\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Font\s*,[^,]*)(Bold|Italic|Strike|Underline|Norm|c(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Color\s*,\s*)(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Flash\s*,\s*)Off\b
name: keyword.other.ahk
# GUI Options and styles for a window
- match: (?i)\b(?<=\bGui\b\s*,?\s*(((\w+|%\w+%):\s*)?New\s*,)?[^,]*)(AlwaysOnTop|Border|Caption|Delimiter|Disabled|DPIScale|Hwnd|Label|LastFound|LastFoundExist|MaximizeBox|MinimizeBox|MinSize|MaxSize|OwnDialogs|Owner|Parent|Resize|SysMenu|Theme|ToolWindow)\b
name: keyword.other.ahk
# GUI ADD - Positioning and Sizing of Controls
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*(\w+|%\w+%)\s*,[^,]*)(wp|hp|xp|yp|xm|ym|xs|ys)\b
name: keyword.other.ahk
# GUI ADD - Controls' Common Styles and Other Options
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*(\w+|%\w+%)\s*,[^,]*)(AltSubmit|Choose|Disabled|Hidden|Left|Right|Center|Section|Tabstop|Wrap|VScroll|HScroll|Controls|BackgroundTrans|Background|Border|HwndOutputVar|Theme|c(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
# GUI ADD - Controls' Specific Options
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*Edit\s*,[^,]*)(Limit|Lowercase|Multi|Number|Password|ReadOnly|Uppercase|WantCtrlA|WantReturn|WantTab|Wrap)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*UpDown\s*,[^,]*)(Horz|Left|Range|Wrap|16|0x80)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*(Picture|Pic)\s*,[^,]*)(Icon\d+)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*Button\s*,[^,]*)(Default)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*CheckBox\s*,[^,]*)(Check3|Checked|CheckedGray)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*Radio\s*,[^,]*)(Group|Checked)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*(DropDownList|DDL)\s*,[^,]*)(Choose|Uppercase|Lowercase|Sort)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*ComboBox\s*,[^,]*)(Limit|Simple)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*ListBox\s*,[^,]*)(Choose|Multi|ReadOnly|Sort|0x100)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*DateTime\s*,[^,]*,[^,]*)(LongDate|Time|Choose|ChooseNone|Range|Right)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*MonthCal\s*,[^,]*)(Multi|Range|Colors|4|8|16)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*Slider\s*,[^,]*)(Buddy1|Buddy2|Center|Invert|Left|Line|NoTicks|Page|Range|Thick|TickInterval|ToolTip|Vertical)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*Progress\s*,[^,]*)(Background|Range|Smooth|Vertical|c(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua)|Background(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*(Tab|Tab2|Tab3)\s*,[^,]*)(Choose|Background|Buttons|Left|Right|Bottom|Wrap)\b
name: keyword.other.ahk
# GUI ADD LISTVIEW - Options
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*ListView\s*,[^,]*)(AltSubmit|Background|Checked|Count|Grid|Hdr|LV|LV0x10|LV0x20|Multi|NoSortHdr|NoSort|ReadOnly|Sort|SortDesc|WantF2|Icon|Tile|IconSmall|List|Report|c(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
# GUI ADD TREEVIEW - Options
- match: (?i)\b(?<=\bGui\b\s*,?\s*((\w+|%\w+%):\s*)?Add\s*,\s*TreeView\s*,[^,]*)(AltSubmit|Background|Buttons|Checked|HScroll|ImageList|Lines|ReadOnly|WantF2|c(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGuiControl\b\s*,?\s*((\w+|%\w+%):\s*)?)(Text|Move|MoveDraw|Focus|Disable|Enable|Hide|Show|Delete|Choose|ChooseString|Font|Options)\b
name: keyword.other.ahk
# GuiControl - Common Options
- match: (?i)\b(?<=\bGuiControl\b\s*,?[^,]*(\+|-))(g|Redraw|AltSubmit|Choose|Disabled|Hidden|Left|Right|Center|Section|Tabstop|Wrap|VScroll|HScroll|Controls|BackgroundTrans|Background|Border|HwndOutputVar|Theme)\b
name: keyword.other.ahk
# GuiControl - Controls' Specific Options
- match: (?i)\b(?<=\bGuiControl\b\s*,?[^,]*(\+|-))(Limit|Lowercase|Multi|Number|Password|ReadOnly|Uppercase|WantCtrlA|WantReturn|WantTab|Wrap|Horz|Left|Range|Wrap|16|0x80|Icon|Default|Check3|Checked|CheckedGray|Group|Checked|Choose|Uppercase|Lowercase|Sort|Limit|Simple|Choose|Multi|ReadOnly|Sort|0x100|LongDate|Time|Choose|ChooseNone|Range|Right|Multi|Range|Colors|4|8|16|Buddy1|Buddy2|Center|Invert|Left|Line|NoTicks|Page|Range|Thick|TickInterval|ToolTip|Vertical|Background|Range|Smooth|Vertical|Choose|Background|Buttons|Left|Right|Bottom|Wrap|AltSubmit|Background|Checked|Count|Grid|Hdr|LV|LV0x10|LV0x20|Multi|NoSortHdr|NoSort|ReadOnly|Sort|SortDesc|WantF2|Icon|Tile|IconSmall|List|Report|AltSubmit|Background|Buttons|Checked|HScroll|ImageList|Lines|ReadOnly|WantF2)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bGuiControlGet\b\s*,?[^,]+,\s*((\w+|%\w+%):\s*)?)(Pos|Focus|FocusV|Enabled|Visible|Hwnd|Name)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bIf\s+(\w+|%\w+%)\s+)(is\s+(not\s+)?(Integer|Float|Number|Digit|Xdigit|Alpha|Upper|Lower|Alnum|Space|Time|Date))\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bIf\s+(\w+|%\w+%)\s+(not\s+)?)(between|contains|in)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bIfMsgBox\s*,?\s*)(Yes|No|OK|Cancel|Abort|Ignore|Retry|Continue|TryAgain|Timeout)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bLoop\b\s*,?\s*)(Files|Parse|Read|Reg)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bLoop\b\s*,?\s*Reg\s*,\s*)(HKEY_LOCAL_MACHINE|HKEY_USERS|HKEY_CURRENT_USER|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKLM|HKU|HKCU|HKCR|HKCC)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bLoop\b\s*,?\s*Reg\s*,[^,]+,\s*)(KV?R?|KR?V?|VK?R?|VR?K?|RK?V?|RV?K?)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bMenu\b\s*,?\s*)Tray\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bMenu\b\b\s*,?[^,]+,\s*)(Add|Insert|Delete|DeleteAll|Rename|Check|Uncheck|ToggleCheck|Enable|Disable|ToggleEnable|Default|NoDefault|Standard|NoStandard|Icon|NoIcon|Tip|Show|Color|Click|MainWindow|NoMainWindow|UseErrorLevel)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bMouseClick(Drag)?\b\s*,?\s*)(L|Left|R|Right|M|Middle|X1|X2)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bPixelGetColor\b\s*,?[^,]+,[^,]+,[^,]+,[^,]*)(Alt|Slow|RGB)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bPixelSearch\b\s*,?[^,]+,[^,]+,[^,]+,[^,]+,[^,]+,[^,]+,[^,]+,[^,]+,[^,]*)(Fast|RGB)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bProcess\b\s*,?\s*)(Exist|Close|List|Priority|Wait|WaitClose)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bProcess\b\s*,?\s*Priority\s*,[^,]+,\s*)(L|Low|B|BelowNormal|N|Normal|A|AboveNormal|H|High|R|Realtime)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\b(Progress|SplashImage)\b\s*,?\s*)(Off|Show)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bProgress\b\s*,?[^,]*)(A|(B|M)(1|2)?|T|Hide|(CB|CT|CW)(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bRegDelete\b\s*,?\s*)(HKEY_LOCAL_MACHINE|HKEY_USERS|HKEY_CURRENT_USER|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKLM|HKU|HKCU|HKCR|HKCC)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bRegDelete\b\s*,?[^,]+,\s*)(AHK_DEFAULT)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bRegRead\b\s*,?[^,]+,\s*)(HKEY_LOCAL_MACHINE|HKEY_USERS|HKEY_CURRENT_USER|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKLM|HKU|HKCU|HKCR|HKCC)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bRegWrite\b\s*,?\s*)(REG_SZ|REG_EXPAND_SZ|REG_MULTI_SZ|REG_DWORD|REG_BINARY)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bRegWrite\b\s*,?[^,]+,\s*)(HKEY_LOCAL_MACHINE|HKEY_USERS|HKEY_CURRENT_USER|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKLM|HKU|HKCU|HKCR|HKCC)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\b(Run|RunWait)\b\s*,?[^,]+,[^,]*,\s*)(Max|Min|Hide|UseErrorLevel)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSendMode\b\s*,?\s*)(Event|Input|InputThenPlay|Play)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\b(SetCapsLockState|SetNumLockState|SetScrollLockState)\b\s*,?\s*)(On|Off|AlwaysOn|AlwaysOff)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSetFormat\b\s*,?\s*)(Integer|Float|IntegerFast|FloatFast)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSetFormat\b\s*,?\s*(Integer|IntegerFast)\s*,\s*)(D|H|HEX)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSetMouseDelay\b\s*,?[^,]+,\s*)(Play)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSetKeyDelay\b\s*,?[^,]+,[^,]+,\s*)(Play)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSetRegView\b\s*,?\s*)(32|64|Default)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSetTimer\b\s*,?[^,]*,\s*)(On|Off|Delete)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSoundSet\b\s*,?[^,]+,\s*)(MASTER|SPEAKERS|DIGITAL|LINE|MICROPHONE|SYNTH|CD|TELEPHONE|PCSPEAKER|WAVE|AUX|ANALOG|HEADPHONES|N/A)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSoundSet\b\s*,?[^,]+,[^,]*,\s*)(VOLUME|VOL|ONOFF|MUTE|MONO|LOUDNESS|STEREOENH|BASSBOOST|PAN|QSOUNDPAN|BASS|TREBLE|EQUALIZER)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSplashImage\b\s*,?[^,]+,[^,]*)(A|(B|M)(1|2)?|T|Hide|(CB|CT|CW)(Default|Black|Silver|Gray|White|Maroon|Red|Purple|Fuchsia|Green|Lime|Olive|Yellow|Navy|Blue|Teal|Aqua))\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bStringCaseSense\b\s*,?\s*)(On|Off|Locale)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bSysGet\b\s*,?[^,]+,\s*)(MonitorCount|MonitorPrimary|Monitor|MonitorWorkArea|MonitorName)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bThread\b\s*,?\s*)(NoTimers|Priority|Interrupt)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bTransform\b\s*,?[^,]+,\s*)(Unicode|Deref|HTML|Asc|Chr|Mod|Exp|Sqrt|Log|Ln|Round|Ceil|Floor|Abs|Sin|Cos|Tan|ASin|ACos|ATan|Pow|BitNot|BitAnd|BitOr|BitXOr|BitShiftLeft|BitShiftRight)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bWinGet\b\s*,?[^,]+,\s*)(ID|IDLast|PID|ProcessName|ProcessPath|Count|List|MinMax|ControlList|ControlListHwnd|Transparent|TransColor|Style|ExStyle)\b
name: keyword.other.ahk
- match: (?i)\b(?<=\bWinSet\b\s*,?\s*)(AlwaysOnTop|Bottom|Top|Disable|Enable|Redraw|Style|ExStyle|Region|Transparent|TransColor)\b
name: keyword.other.ahk
- match: >-
\b(?!MsgBox)(?<!\.)(?i:if|else|switch|case|return|loop|break|for|while|class|extends|catch|finally|throw|try|until|continue|critical|exit|exitapp)\b
name: keyword.control.ahk
Expand Down
Loading