Skip to content

Commit

Permalink
Syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Resike committed Mar 19, 2018
1 parent f62ed51 commit f0a7397
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@

{
"trigger": "_Alpha\thelp",
"contents": "Alpha = {\n\tinherits = {\n\t\t\"Alpha\",\n\t\t\"Animation\",\n\t\t\"ScriptObject\",\n\t\t\"ParentedObject\",\n\t\t\"UIObject\",\n\t},\n\thandlers = {\n\t\t[\"OnFinished\"] = \"self, requested\", -- Run when the animation finishes animating\n\t\t[\"OnLoad\"] = \"self\", -- Run when the frame is created\n\t\t[\"OnPause\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnPlay\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnStop\"] = \"self, requested\", -- Run when the animation is stopped\n\t\t[\"OnUpdate\"] = \"self, elapsed\", -- Run each time the screen is drawn by the game engine\n\t},\n\tmethods = {\n\t\t\"GetDebugName\", -- Returns the widget object's debug name\n\t\t\"GetDuration\", -- Returns the time for the animation to progress from start to finish\n\t\t\"GetElapsed\", -- Returns the amount of time since the animation began playing\n\t\t\"GetEndDelay\", -- Returns the amount of time the animation delays after finishing\n\t\t\"GetFromAlpha\", -- Returns the start value that the alpha of this animation's parent region changes by\n\t\t\"GetName\", -- Returns the widget object's name\n\t\t\"GetObjectType\", -- Returns the object's widget type\n\t\t\"GetOrder\", -- Returns the order of the animation within it's parent group\n\t\t\"GetParent\", -- Returns the object's parent object\n\t\t\"GetProgress\", -- Returns the progress of an animation, ignoring smoothing effects\n\t\t\"GetRegionParent\", -- Returns the region object on which the animation operates\n\t\t\"GetScript\", -- Returns the widget's handler function for a script\n\t\t\"GetSmoothing\", -- Returns the smoothing type for the animation\n\t\t\"GetSmoothProgress\", -- Returns the progress of the animation (ignoring start and end delay)\n\t\t\"GetStartDelay\", -- Returns the amount of time the animation delays before it's progress begins\n\t\t\"GetTarget\", -- Returns the region affected by this animation\n\t\t\"GetToAlpha\", -- Returns the end value that the alpha of this animation's parent region changes by\n\t\t\"HasScript\", -- Returns whether the widget supports a script handler\n\t\t\"HookScript\", -- Securely hooks a script handler\n\t\t\"IsDelaying\", -- Returns whether the animation is currently in the middle of a start or end delay\n\t\t\"IsDone\", -- Returns whether the animation has finished playing\n\t\t\"IsForbidden\", -- Returns if this widget's methods may only be called from secure execution paths\n\t\t\"IsObjectType\", -- Returns whether the object belongs to a given widget type\n\t\t\"IsPaused\", -- Returns whether the animation is currently paused\n\t\t\"IsPlaying\", -- Returns whether the animation is currently playing\n\t\t\"IsStopped\", -- Returns whether the animation is currently stopped\n\t\t\"Pause\", -- Pauses the animation\n\t\t\"Play\", -- Plays the animation\n\t\t\"Restart\", -- Restarts the animation\n\t\t\"SetChildKey\", -- Sets the animation to manipulate a particular child member of it's host frame\n\t\t\"SetDuration\", -- Sets the time for the animation to progress from start to finish\n\t\t\"SetEndDelay\", -- Sets the amount of time for the animation to delay after finishing\n\t\t\"SetForbidden\", -- Sets whether the modification of the object's secure methods are forbidden while in combat\n\t\t\"SetFromAlpha\", -- Sets the start value from which the alpha of this animation's parent region changes by\n\t\t\"SetOrder\", -- Sets the order for the animation to play within it's parent group\n\t\t\"SetParent\", -- Sets another frame the parent of this regihon\n\t\t\"SetScript\", -- Sets the widget's handler function for a script\n\t\t\"SetSmoothing\", -- Sets the smoothing type for the animation\n\t\t\"SetSmoothProgress\", -- Sets the progress of the smoothing type for the animation\n\t\t\"SetStartDelay\", -- Sets the amount of time for the animation to delay before it's progress begins\n\t\t\"SetTarget\", -- Sets the region affected by this animation\n\t\t\"SetTargetKey\", -- Sets the animation to manipulate a particular child member of it's target\n\t\t\"SetToAlpha\", -- Sets the end value from which the alpha of this animation's parent region changes by\n\t\t\"Stop\", -- Stops the animation\n\t},\n}",
"contents": "Alpha = {\n\tinherits = {\n\t\t\"Alpha\",\n\t\t\"Animation\",\n\t\t\"ScriptObject\",\n\t\t\"ParentedObject\",\n\t\t\"UIObject\",\n\t},\n\thandlers = {\n\t\t[\"OnFinished\"] = \"self, requested\", -- Run when the animation finishes animating\n\t\t[\"OnLoad\"] = \"self\", -- Run when the frame is created\n\t\t[\"OnPause\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnPlay\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnStop\"] = \"self, requested\", -- Run when the animation is stopped\n\t\t[\"OnUpdate\"] = \"self, elapsed\", -- Run each time the screen is drawn by the game engine\n\t},\n\tmethods = {\n\t\t\"GetDebugName\", -- Returns the widget object's debug name\n\t\t\"GetDuration\", -- Returns the time for the animation to progress from start to finish\n\t\t\"GetElapsed\", -- Returns the amount of time since the animation began playing\n\t\t\"GetEndDelay\", -- Returns the amount of time the animation delays after finishing\n\t\t\"GetFromAlpha\", -- Returns the start value that the alpha of this animation's parent region changes by\n\t\t\"GetName\", -- Returns the widget object's name\n\t\t\"GetObjectType\", -- Returns the object's widget type\n\t\t\"GetOrder\", -- Returns the order of the animation within it's parent group\n\t\t\"GetParent\", -- Returns the object's parent object\n\t\t\"GetProgress\", -- Returns the progress of an animation, ignoring smoothing effects\n\t\t\"GetRegionParent\", -- Returns the region object on which the animation operates\n\t\t\"GetScript\", -- Returns the widget's handler function for a script\n\t\t\"GetSmoothing\", -- Returns the smoothing type for the animation\n\t\t\"GetSmoothProgress\", -- Returns the progress of the animation (ignoring start and end delay)\n\t\t\"GetStartDelay\", -- Returns the amount of time the animation delays before it's progress begins\n\t\t\"GetTarget\", -- Returns the region affected by this animation\n\t\t\"GetToAlpha\", -- Returns the end value that the alpha of this animation's parent region changes by\n\t\t\"HasScript\", -- Returns whether the widget supports a script handler\n\t\t\"HookScript\", -- Securely hooks a script handler\n\t\t\"IsDelaying\", -- Returns whether the animation is currently in the middle of a start or end delay\n\t\t\"IsDone\", -- Returns whether the animation has finished playing\n\t\t\"IsForbidden\", -- Returns if this widget's methods may only be called from secure execution paths\n\t\t\"IsObjectType\", -- Returns whether the object belongs to a given widget type\n\t\t\"IsPaused\", -- Returns whether the animation is currently paused\n\t\t\"IsPlaying\", -- Returns whether the animation is currently playing\n\t\t\"IsStopped\", -- Returns whether the animation is currently stopped\n\t\t\"Pause\", -- Pauses the animation\n\t\t\"Play\", -- Plays the animation\n\t\t\"Restart\", -- Restarts the animation\n\t\t\"SetChildKey\", -- Sets the animation to manipulate a particular child member of it's host frame\n\t\t\"SetDuration\", -- Sets the time for the animation to progress from start to finish\n\t\t\"SetEndDelay\", -- Sets the amount of time for the animation to delay after finishing\n\t\t\"SetForbidden\", -- Sets whether the modification of the object's secure methods are forbidden while in combat\n\t\t\"SetFromAlpha\", -- Sets the start value from which the alpha of this animation's parent region changes by\n\t\t\"SetOrder\", -- Sets the order for the animation to play within it's parent group\n\t\t\"SetParent\", -- Sets another frame the parent of this region\n\t\t\"SetScript\", -- Sets the widget's handler function for a script\n\t\t\"SetSmoothing\", -- Sets the smoothing type for the animation\n\t\t\"SetSmoothProgress\", -- Sets the progress of the smoothing type for the animation\n\t\t\"SetStartDelay\", -- Sets the amount of time for the animation to delay before it's progress begins\n\t\t\"SetTarget\", -- Sets the region affected by this animation\n\t\t\"SetTargetKey\", -- Sets the animation to manipulate a particular child member of it's target\n\t\t\"SetToAlpha\", -- Sets the end value from which the alpha of this animation's parent region changes by\n\t\t\"Stop\", -- Stops the animation\n\t},\n}",
},
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"SetForbidden", -- Sets whether the modification of the object's secure methods are forbidden while in combat
"SetFromAlpha", -- Sets the start value from which the alpha of this animation's parent region changes by
"SetOrder", -- Sets the order for the animation to play within it's parent group
"SetParent", -- Sets another frame the parent of this regihon
"SetParent", -- Sets another frame the parent of this region
"SetScript", -- Sets the widget's handler function for a script
"SetSmoothing", -- Sets the smoothing type for the animation
"SetSmoothProgress", -- Sets the progress of the smoothing type for the animation
Expand Down
4 changes: 3 additions & 1 deletion WoW Global Finder/Globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ Directives in the file:
--]]

local File = ...

local strmatch = string.match
local strgmatch = string.gmatch
local print = print
local gsub = string.gsub
local tonumber = tonumber
local stdin = io.input()

local source = assert(io.open(arg[1]))
local source = assert(io.open(File))

-- First we parse the source file

Expand Down
4 changes: 3 additions & 1 deletion WoW Global Finder/WoW Global Finder.sublime-build
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"cmd": ["$packages/WoWDevelopment/WoW Global Finder/WoW Global Finder.bat", "$file"],
"selector": "source.lua"
"selector": "source.lua",
//"target": "ansi_color_build",
//"syntax": "Packages/ANSIescape/ANSI.tmLanguage"
}
134 changes: 122 additions & 12 deletions WoW Lua.sublime-syntax

Large diffs are not rendered by default.

133 changes: 121 additions & 12 deletions WoW XML.sublime-syntax

Large diffs are not rendered by default.

0 comments on commit f0a7397

Please sign in to comment.