diff --git a/.gitmodules b/.gitmodules index 7cc9e80d..6398d17d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -91,3 +91,6 @@ [submodule "assets/syntaxes/PowerShell"] path = assets/syntaxes/PowerShell url = https://github.com/PowerShell/EditorSyntax +[submodule "assets/syntaxes/Robot"] + path = assets/syntaxes/Robot + url = https://github.com/andriyko/sublime-robot-framework-assistant.git diff --git a/assets/syntaxes.bin b/assets/syntaxes.bin index f78eb5e1..3212c488 100644 Binary files a/assets/syntaxes.bin and b/assets/syntaxes.bin differ diff --git a/assets/syntaxes/Robot b/assets/syntaxes/Robot new file mode 160000 index 00000000..8e5a349a --- /dev/null +++ b/assets/syntaxes/Robot @@ -0,0 +1 @@ +Subproject commit 8e5a349a3ea64f2e75d224f6ed1dcef6b9fbc525 diff --git a/assets/syntaxes/Robot.sublime-syntax b/assets/syntaxes/Robot.sublime-syntax new file mode 100644 index 00000000..85e4f6d5 --- /dev/null +++ b/assets/syntaxes/Robot.sublime-syntax @@ -0,0 +1,54 @@ +%YAML 1.2 +--- +# http://www.sublimetext.com/docs/3/syntax.html +name: Robot Framework syntax highlighting. +file_extensions: + - robot +scope: source.robot +contexts: + main: + - match: '\$\{(\d+|\d+\.\d*|0[bB][01]+|0[oO][0-7]+|0[xX][0-9a-fA-F]+)\}' + comment: "Robot Framework numbers, like ${1} or ${12.3}" + scope: constant.numeric.robot + - match: '(?i)(%\{[\w|\s]+\})' + comment: "Robot Framework environment variable, like %{USER}" + scope: variable.parameter.robot + - match: '((?