diff --git a/Tests/syntax_test_break_continue.pb b/Tests/syntax_test_break_continue.pb index f1883c3..a65abda 100644 --- a/Tests/syntax_test_break_continue.pb +++ b/Tests/syntax_test_break_continue.pb @@ -1,53 +1,53 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define k.i For k = 0 To 10 -; <- keyword.control.purebasic -;^^ keyword.control.purebasic -; ^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic -; ^^ keyword.control.purebasic -; ^^ constant.numeric.purebasic +;; <- keyword.control.purebasic +;;^ keyword.control.purebasic +;; ^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic +;; ^^ keyword.control.purebasic +;; ^^ constant.numeric.purebasic If k = 5 -; ^^ keyword.control.purebasic -; ^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic +;; ^^ keyword.control.purebasic +;; ^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic Break -; ^^^^^ keyword.control.purebasic +;; ^^^^^ keyword.control.purebasic EndIf -; ^^^^^ keyword.control.purebasic +;; ^^^^^ keyword.control.purebasic Debug k -; ^^^^^ keyword.other.purebasic -; ^ variable.other.purebasic +;; ^^^^^ keyword.other.purebasic +;; ^ variable.other.purebasic Next -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic For k = 0 To 10 -; <- keyword.control.purebasic -;^^ keyword.control.purebasic -; ^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic -; ^^ keyword.control.purebasic -; ^^ constant.numeric.purebasic +;; <- keyword.control.purebasic +;;^ keyword.control.purebasic +;; ^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic +;; ^^ keyword.control.purebasic +;; ^^ constant.numeric.purebasic If k = 5 -; ^^ keyword.control.purebasic -; ^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic +;; ^^ keyword.control.purebasic +;; ^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic Continue -; ^^^^^^^^ keyword.control.purebasic +;; ^^^^^^^^ keyword.control.purebasic EndIf -; ^^^^^ keyword.control.purebasic +;; ^^^^^ keyword.control.purebasic Debug k -; ^^^^^ keyword.other.purebasic -; ^ variable.other.purebasic +;; ^^^^^ keyword.other.purebasic +;; ^ variable.other.purebasic Next -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic diff --git a/Tests/syntax_test_compiler_directives.pb b/Tests/syntax_test_compiler_directives.pb index b4864c8..286bb00 100644 --- a/Tests/syntax_test_compiler_directives.pb +++ b/Tests/syntax_test_compiler_directives.pb @@ -1,76 +1,76 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit -; <- keyword.other.purebasic -;^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^ keyword.other.purebasic CompilerIf #PB_Compiler_OS = #PB_OS_Linux -; <- keyword.control.purebasic -;^^^^^^^^^ keyword.control.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^^^^ variable.other.constant.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^ variable.other.constant.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^^ keyword.control.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^ variable.other.constant.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^ variable.other.constant.purebasic CompilerWarning "Linux isn't supported, sorry." -; ^^^^^^^^^^^^^^^ keyword.other.purebasic -; ^ punctuation.definition.string.begin -; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double -; ^ punctuation.definition.string.end +;; ^^^^^^^^^^^^^^^ keyword.other.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double +;; ^ punctuation.definition.string.end CompilerElseIf #PB_Compiler_OS = #PB_OS_MacOS -; <- keyword.control.purebasic -;^^^^^^^^^^^^^ keyword.control.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^^^^ variable.other.constant.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^ variable.other.constant.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^^^^^^ keyword.control.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^ variable.other.constant.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^ variable.other.constant.purebasic Debug "This is macOS." -; ^^^^^ keyword.other.purebasic -; ^ punctuation.definition.string.begin -; ^^^^^^^^^^^^^^^^ string.quoted.double -; ^ punctuation.definition.string.end +;; ^^^^^ keyword.other.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^^^^^^^^^^^^^ string.quoted.double +;; ^ punctuation.definition.string.end CompilerElse -; <- keyword.control.purebasic -;^^^^^^^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^^^^ keyword.control.purebasic CompilerError "OS supported, you can now comment me." -; ^^^^^^^^^^^^^ keyword.other.purebasic -; ^ punctuation.definition.string.begin -; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double -; ^ punctuation.definition.string.end +;; ^^^^^^^^^^^^^ keyword.other.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double +;; ^ punctuation.definition.string.end CompilerEndIf -; <- keyword.control.purebasic -;^^^^^^^^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^^^^^ keyword.control.purebasic CompilerSelect #PB_Compiler_OS -; <- keyword.control.purebasic -;^^^^^^^^^^^^^ keyword.control.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^^^^ variable.other.constant.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^^^^^^ keyword.control.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^ variable.other.constant.purebasic CompilerCase #PB_OS_MacOS -; ^^^^^^^^^^^^ keyword.control.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^ variable.other.constant.purebasic +;; ^^^^^^^^^^^^ keyword.control.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^ variable.other.constant.purebasic CompilerCase #PB_OS_Linux -; ^^^^^^^^^^^^ keyword.control.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^ variable.other.constant.purebasic +;; ^^^^^^^^^^^^ keyword.control.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^ variable.other.constant.purebasic CompilerDefault -; ^^^^^^^^^^^^^^^ keyword.control.purebasic +;; ^^^^^^^^^^^^^^^ keyword.control.purebasic CompilerEndSelect -; <- keyword.control.purebasic -;^^^^^^^^^^^^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^^^^^^^^^ keyword.control.purebasic Define Test = 10 EnableASM -; <- keyword.other.purebasic -;^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^ keyword.other.purebasic MOV dword [v_Test],20 DisableASM -; <- keyword.other.purebasic -;^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^ keyword.other.purebasic DisableExplicit -; <- keyword.other.purebasic -;^^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^^ keyword.other.purebasic diff --git a/Tests/syntax_test_constants.pb b/Tests/syntax_test_constants.pb index 8a8f156..07d5fb0 100644 --- a/Tests/syntax_test_constants.pb +++ b/Tests/syntax_test_constants.pb @@ -1,8 +1,8 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit #CustomConstant = 123 -; <- variable.other.constant.purebasic punctuation.definition.variable.purebasic -; <- variable.other.constant.purebasic -;^^^^^^^^^^^^^^ variable.other.constant.purebasic +;; <- variable.other.constant.purebasic punctuation.definition.variable.purebasic +;; <- variable.other.constant.purebasic +;;^^^^^^^^^^^^^ variable.other.constant.purebasic diff --git a/Tests/syntax_test_data.pb b/Tests/syntax_test_data.pb index a4dd6ee..9fcecfd 100644 --- a/Tests/syntax_test_data.pb +++ b/Tests/syntax_test_data.pb @@ -1,107 +1,107 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define MyFirstData$, MySecondData$, a.l, b.l Restore StringData -; <- keyword.other.purebasic -;^^^^^^ keyword.other.purebasic -; ^^^^^^^^^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^ keyword.other.purebasic +;; ^^^^^^^^^^ variable.other.purebasic Read.s MyFirstData$ -; <- keyword.other.purebasic -;^^^ keyword.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^^^^^^^^^^^^ variable.other.purebasic -; ^ variable.other.purebasic punctuation.definition.variable.purebasic +;; <- keyword.other.purebasic +;;^^ keyword.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^^^^^^^^^^^^ variable.other.purebasic +;; ^ variable.other.purebasic punctuation.definition.variable.purebasic Read.s MySecondData$ -; <- keyword.other.purebasic -;^^^ keyword.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^^^^^^^^^^^^^ variable.other.purebasic -; ^ variable.other.purebasic punctuation.definition.variable.purebasic +;; <- keyword.other.purebasic +;;^^ keyword.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^^^^^^^^^^^^^ variable.other.purebasic +;; ^ variable.other.purebasic punctuation.definition.variable.purebasic Restore NumericalData -; <- keyword.other.purebasic -;^^^^^^ keyword.other.purebasic -; ^^^^^^^^^^^^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^ keyword.other.purebasic +;; ^^^^^^^^^^^^^ variable.other.purebasic Read.l a -; <- keyword.other.purebasic -;^^^ keyword.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^ keyword.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ variable.other.purebasic Read.l b -; <- keyword.other.purebasic -;^^^ keyword.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^ keyword.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ variable.other.purebasic Debug MyFirstData$ -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic -; ^^^^^^^^^^^^ variable.other.purebasic -; ^ variable.other.purebasic punctuation.definition.variable.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic +;; ^^^^^^^^^^^^ variable.other.purebasic +;; ^ variable.other.purebasic punctuation.definition.variable.purebasic Debug a -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic -; ^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic +;; ^ variable.other.purebasic End -; <- keyword.control.purebasic -;^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^ keyword.control.purebasic DataSection -; <- keyword.control.import.purebasic -;^^^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^^^ keyword.control.import.purebasic NumericalData: -; ^^^^^^^^^^^^^ entity.name.label.purebasic -; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^^^^ entity.name.label.purebasic +;; ^ punctuation.separator.purebasic Data.l 100, 200, -250, -452, 145 -; ^^^^ keyword.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^^^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^^^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^^^^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^^^^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^^^ constant.numeric.purebasic +;; ^^^^ keyword.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^^^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^ constant.numeric.purebasic StringData: -; ^^^^^^^^^^ entity.name.label.purebasic -; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^ entity.name.label.purebasic +;; ^ punctuation.separator.purebasic Data.s "Hello", "This", "is ", "What ?" -; ^^^^ keyword.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.definition.string.begin -; ^^^^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic -; ^ punctuation.separator.purebasic -; ^ punctuation.definition.string.begin -; ^^^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic -; ^ punctuation.separator.purebasic -; ^ punctuation.definition.string.begin.purebasic -; ^^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic -; ^ punctuation.separator.purebasic -; ^ punctuation.definition.string.begin.purebasic -; ^^^^^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic +;; ^^^^ keyword.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic +;; ^ punctuation.separator.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic +;; ^ punctuation.separator.purebasic +;; ^ punctuation.definition.string.begin.purebasic +;; ^^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic +;; ^ punctuation.separator.purebasic +;; ^ punctuation.definition.string.begin.purebasic +;; ^^^^^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic EndDataSection -; <- keyword.control.import.purebasic -;^^^^^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^^^^^^ keyword.control.import.purebasic diff --git a/Tests/syntax_test_debugger.pb b/Tests/syntax_test_debugger.pb index 4aa72b5..c16637b 100644 --- a/Tests/syntax_test_debugger.pb +++ b/Tests/syntax_test_debugger.pb @@ -1,23 +1,23 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit CallDebugger -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Debug 10 -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic DisableDebugger -; <- keyword.other.purebasic -;^^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^^ keyword.other.purebasic EnableDebugger -; <- keyword.other.purebasic -;^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^ keyword.other.purebasic DebugLevel 2 -; <- keyword.other.purebasic -;^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^ keyword.other.purebasic diff --git a/Tests/syntax_test_define.pb b/Tests/syntax_test_define.pb index e639d0c..a5eba50 100644 --- a/Tests/syntax_test_define.pb +++ b/Tests/syntax_test_define.pb @@ -1,77 +1,77 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define WithoutTypeOrValue -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^^^^^^^^^^^^^^^^^^ variable.other.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^^^^^^^^^^^^^^^^^^ variable.other.purebasic Define.i WithTypeButWithoutValue -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^^^^^^^^^^^^^^^^^^ variable.other.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^^^^^^^^^^^^^^^^^^ variable.other.purebasic Define W.i, Different.s, Types.w -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^ variable.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^ variable.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^ variable.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^ variable.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic Define.s a1 = "a1", a2 = "a2", a3 = "a3" -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.string.begin -; ^^^^ string.quoted.double -; ^ punctuation.definition.string.end -; ^ punctuation.separator.purebasic -; ^^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.string.begin -; ^^^^ string.quoted.double -; ^ punctuation.definition.string.end -; ^ punctuation.separator.purebasic -; ^^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.string.begin -; ^^^^ string.quoted.double -; ^ punctuation.definition.string.end +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^ string.quoted.double +;; ^ punctuation.definition.string.end +;; ^ punctuation.separator.purebasic +;; ^^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^ string.quoted.double +;; ^ punctuation.definition.string.end +;; ^ punctuation.separator.purebasic +;; ^^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^ string.quoted.double +;; ^ punctuation.definition.string.end Define.c aao1.i = 2, x.q = 1.3, aao2.s = "all at once" -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^ punctuation.separator.purebasic -; ^^^ variable.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^ variable.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^^^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^^^^ variable.other.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.string.begin -; ^^^^^^^^^^^^^ string.quoted.double -; ^ punctuation.definition.string.end +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^ variable.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^ variable.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^^^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^ variable.other.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^^^^^^^^^^^ string.quoted.double +;; ^ punctuation.definition.string.end diff --git a/Tests/syntax_test_dim.pb b/Tests/syntax_test_dim.pb index 8157eaa..8cebec3 100644 --- a/Tests/syntax_test_dim.pb +++ b/Tests/syntax_test_dim.pb @@ -1,39 +1,39 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Dim SimpleArray(1) -; <- keyword.declaration.purebasic -;^^ keyword.declaration.purebasic -; ^^^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^ keyword.declaration.purebasic +;; ^^^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic Dim TwoDimensionalArray(1, 1) -; <- keyword.declaration.purebasic -;^^ keyword.declaration.purebasic -; ^^^^^^^^^^^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^ keyword.declaration.purebasic +;; ^^^^^^^^^^^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic ReDim SimpleArray(2) -; <- keyword.declaration.purebasic -;^^^^ keyword.declaration.purebasic -; ^^^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^^^ keyword.declaration.purebasic +;; ^^^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic Dim StringArray.s(1) -; <- keyword.declaration.purebasic -;^^ keyword.declaration.purebasic -; ^^^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^ keyword.declaration.purebasic +;; ^^^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_dollar_notation.pb b/Tests/syntax_test_dollar_notation.pb index 87785fb..f433e3a 100644 --- a/Tests/syntax_test_dollar_notation.pb +++ b/Tests/syntax_test_dollar_notation.pb @@ -1,17 +1,17 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define DotNotation.s = "dot notation" -; ^^^^^^^^^^^ variable.other.purebasic +;; ^^^^^^^^^^^ variable.other.purebasic Define TrailingDollar$ = "trailing dollar" -; ^^^^^^^^^^^^^^^ variable.other.purebasic -; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.definition.variable.purebasic Debug DotNotation -; ^^^^^^^^^^^ variable.other.purebasic +;; ^^^^^^^^^^^ variable.other.purebasic Debug TrailingDollar$ -; ^^^^^^^^^^^^^^^ variable.other.purebasic -; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.definition.variable.purebasic diff --git a/Tests/syntax_test_enumeration.pb b/Tests/syntax_test_enumeration.pb index 1b9b7b1..6d9ba52 100644 --- a/Tests/syntax_test_enumeration.pb +++ b/Tests/syntax_test_enumeration.pb @@ -1,56 +1,56 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Enumeration EnumerationName -; <- storage.type.enum keyword.declaration.enum.purebasic -;^^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic -; ^^^^^^^^^^^^^^^ entity.name.enum.purebasic +;; <- storage.type.enum keyword.declaration.enum.purebasic +;;^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic +;; ^^^^^^^^^^^^^^^ entity.name.enum.purebasic #One #Two #Three EndEnumeration -; <- keyword.other.purebasic -;^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^ keyword.other.purebasic Enumeration 10 Step 2 -; <- storage.type.enum keyword.declaration.enum.purebasic -;^^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic -; ^^ constant.numeric.purebasic -; ^^^^ keyword.other.purebasic -; ^ constant.numeric.purebasic +;; <- storage.type.enum keyword.declaration.enum.purebasic +;;^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic +;; ^^ constant.numeric.purebasic +;; ^^^^ keyword.other.purebasic +;; ^ constant.numeric.purebasic #Four #Five #Six EndEnumeration -; <- keyword.other.purebasic -;^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^ keyword.other.purebasic EnumerationBinary BinaryEnumerationName -; <- storage.type.enum keyword.declaration.enum.purebasic -;^^^^^^^^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic -; ^^^^^^^^^^^^^^^^^^^^^ entity.name.enum.purebasic +;; <- storage.type.enum keyword.declaration.enum.purebasic +;;^^^^^^^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic +;; ^^^^^^^^^^^^^^^^^^^^^ entity.name.enum.purebasic #Constant11 #Constant2 #Constant3 EndEnumeration -; <- keyword.other.purebasic -;^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^ keyword.other.purebasic Enumeration EverythingAtOnce 2 Step 3;Comment -; <- storage.type.enum keyword.declaration.enum.purebasic -;^^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic -; ^^^^^^^^^^^^^^^^ entity.name.enum.purebasic -; ^ constant.numeric.purebasic -; ^^^^ keyword.other.purebasic -; ^ constant.numeric.purebasic -; ^^^^^^^^ comment.line.purebasic +;; <- storage.type.enum keyword.declaration.enum.purebasic +;;^^^^^^^^^ storage.type.enum keyword.declaration.enum.purebasic +;; ^^^^^^^^^^^^^^^^ entity.name.enum.purebasic +;; ^ constant.numeric.purebasic +;; ^^^^ keyword.other.purebasic +;; ^ constant.numeric.purebasic +;; ^^^^^^^^ comment.line.purebasic #ExitCode_Success -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^^^^^^ variable.other.constant.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^^^ variable.other.constant.purebasic #ExitCode_Failure -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^^^^^^ variable.other.constant.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^^^^ variable.other.constant.purebasic EndEnumeration -; <- keyword.other.purebasic -;^^^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^ keyword.other.purebasic diff --git a/Tests/syntax_test_for_next.pb b/Tests/syntax_test_for_next.pb index 445ad77..f6ffb15 100644 --- a/Tests/syntax_test_for_next.pb +++ b/Tests/syntax_test_for_next.pb @@ -1,23 +1,23 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define k.i For k = 0 To 10 -; <- keyword.control.purebasic -;^^ keyword.control.purebasic -; ^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^ keyword.control.purebasic +;; ^^ keyword.control.purebasic Debug k Next -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic For k = 10 To 1 Step -1 -; <- keyword.control.purebasic -;^^ keyword.control.purebasic -; ^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^ keyword.control.purebasic +;; ^^ keyword.control.purebasic Debug k Next -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic diff --git a/Tests/syntax_test_foreach_next.pb b/Tests/syntax_test_foreach_next.pb index c8244a7..90127e5 100644 --- a/Tests/syntax_test_foreach_next.pb +++ b/Tests/syntax_test_foreach_next.pb @@ -1,4 +1,4 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit @@ -14,9 +14,9 @@ AddElement(Number()) Number() = 30 ForEach Number() -; <- keyword.control.purebasic -;^^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^^ keyword.control.purebasic Debug Number() Next -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic diff --git a/Tests/syntax_test_general_syntax_rules.pb b/Tests/syntax_test_general_syntax_rules.pb index 4b4dcf5..49adccd 100644 --- a/Tests/syntax_test_general_syntax_rules.pb +++ b/Tests/syntax_test_general_syntax_rules.pb @@ -1,23 +1,23 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define StartIndex.i, StringToSearchIn.s = "The symbol \ is used as an accessor to structure fields in PureBasic." StartIndex = FindString(StringToSearchIn, "\", StartIndex) -; ^ punctuation.definition.string.begin -; ^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^^ variable.other.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^ punctuation.definition.string.begin +;; ^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.section.parens.end.purebasic StartIndex = FindString(StringToSearchIn, ~"\"", StartIndex) -; ^ -; ^ punctuation.definition.string.begin -; ^^ constant.character.escape.purebasic -; ^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^^ variable.other.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^ +;; ^ punctuation.definition.string.begin +;; ^^ constant.character.escape.purebasic +;; ^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_global.pb b/Tests/syntax_test_global.pb index 3749816..a63e5cc 100644 --- a/Tests/syntax_test_global.pb +++ b/Tests/syntax_test_global.pb @@ -1,27 +1,27 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Global a.i = 1 -; <- storage.modifier.purebasic +;; <- storage.modifier.purebasic ;^^^^^ storage.modifier.purebasic Global NewMap GlobalMap.i() -; <- storage.modifier.purebasic -;^^^^^ storage.modifier.purebasic -; ^^^^^^ keyword.declaration.purebasic -; ^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.modifier.purebasic +;;^^^^ storage.modifier.purebasic +;; ^^^^^^ keyword.declaration.purebasic +;; ^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic Global NewList GlobalList.i() -; <- storage.modifier.purebasic -;^^^^^ storage.modifier.purebasic -; ^^^^^^^ keyword.declaration.purebasic -; ^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.modifier.purebasic +;;^^^^ storage.modifier.purebasic +;; ^^^^^^^ keyword.declaration.purebasic +;; ^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_gosub_return.pb b/Tests/syntax_test_gosub_return.pb index 0794349..dd402b7 100644 --- a/Tests/syntax_test_gosub_return.pb +++ b/Tests/syntax_test_gosub_return.pb @@ -1,38 +1,38 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define a = 1 Define b = 2 Gosub ComplexOperation -; <- keyword.control.purebasic -;^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^ keyword.control.purebasic Debug a End -; <- keyword.control.purebasic -;^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^ keyword.control.purebasic ComplexOperation: -; <- entity.name.label.purebasic -;^^^^^^^^^^^^^^^ entity.name.label.purebasic +;; <- entity.name.label.purebasic +;;^^^^^^^^^^^^^^ entity.name.label.purebasic a = b*2+a*3+(a+b) a = a+a*a Return Gosub SubRoutine1 -; <- keyword.control.purebasic -;^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^ keyword.control.purebasic SubRoutine1: -; <- entity.name.label.purebasic -;^^^^^^^^^^ entity.name.label.purebasic +;; <- entity.name.label.purebasic +;;^^^^^^^^^ entity.name.label.purebasic If a = 10 FakeReturn Goto Main_Loop -; ^^^^ keyword.control.purebasic +;; ^^^^ keyword.control.purebasic EndIf Return Main_Loop: -; <- entity.name.label.purebasic -;^^^^^^^^ entity.name.label.purebasic +;; <- entity.name.label.purebasic +;;^^^^^^^ entity.name.label.purebasic diff --git a/Tests/syntax_test_if_else_endif.pb b/Tests/syntax_test_if_else_endif.pb index 4832b63..f5d0001 100644 --- a/Tests/syntax_test_if_else_endif.pb +++ b/Tests/syntax_test_if_else_endif.pb @@ -1,17 +1,16 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define a = 5 If a = 10 -; <- keyword.control.purebasic -;^ keyword.control.purebasic +;; <- keyword.control.purebasic Debug "a = 10" Else -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic Debug "a <> 10" EndIf -; <- keyword.control.purebasic -;^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^ keyword.control.purebasic diff --git a/Tests/syntax_test_import_endimport.pb b/Tests/syntax_test_import_endimport.pb index 972ed31..5d514a8 100644 --- a/Tests/syntax_test_import_endimport.pb +++ b/Tests/syntax_test_import_endimport.pb @@ -1,33 +1,33 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Import "User32.lib" -; <- keyword.control.import -;^^^^^ keyword.control.import -; ^ punctuation.definition.string.begin.purebasic -; ^^^^^^^^^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic +;; <- keyword.control.import +;;^^^^ keyword.control.import +;; ^ punctuation.definition.string.begin.purebasic +;; ^^^^^^^^^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic MessageBoxA(Window.i, Body$, Title$, Flags.i = 0) -; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.definition.variable.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^ variable.parameter.purebasic -; ^ punctuation.definition.variable.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^ variable.parameter.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic MsgBox(Window.i, Body$, Title$, Flags.i) As "_MessageBoxA@16" EndImport -; <- keyword.control.import.purebasic -;^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^ keyword.control.import.purebasic diff --git a/Tests/syntax_test_include_functions.pb b/Tests/syntax_test_include_functions.pb index b6c260c..5eb5fbb 100644 --- a/Tests/syntax_test_include_functions.pb +++ b/Tests/syntax_test_include_functions.pb @@ -1,23 +1,23 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit IncludeFile "syntax_test_global.pb" -; <- keyword.control.import.purebasic -;^^^^^^^^^^ +;; <- keyword.control.import.purebasic +;;^^^^^^^^^ XIncludeFile "syntax_test_interface.pb" -; <- keyword.control.import.purebasic -;^^^^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^^^^ keyword.control.import.purebasic DataSection -; <- keyword.control.import.purebasic -;^^^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^^^ keyword.control.import.purebasic IncludeBinary "syntax_test_static.pb" EndDataSection -; <- keyword.control.import.purebasic -;^^^^^^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^^^^^^ keyword.control.import.purebasic IncludePath "." -; <- keyword.control.import.purebasic -;^^^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^^^ keyword.control.import.purebasic diff --git a/Tests/syntax_test_interface.pb b/Tests/syntax_test_interface.pb index ac001d3..0642f72 100644 --- a/Tests/syntax_test_interface.pb +++ b/Tests/syntax_test_interface.pb @@ -1,79 +1,79 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Interface Cube -; <- storage.type.interface.purebasic keyword.declaration.interface.purebasic -;^^^^^^^^ storage.type.interface.purebasic keyword.declaration.interface.purebasic -; ^^^^ entity.name.interface.purebasic +;; <- storage.type.interface.purebasic keyword.declaration.interface.purebasic +;;^^^^^^^ storage.type.interface.purebasic keyword.declaration.interface.purebasic +;; ^^^^ entity.name.interface.purebasic GetPosition() -; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic SetPosition(x.i) -; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.end.purebasic GetWidth.i() -; ^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic SetWidth(Width) -; ^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.section.parens.end.purebasic EndInterface -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Interface ColoredCube Extends Cube -; <- storage.type.interface.purebasic keyword.declaration.interface.purebasic -;^^^^^^^^ storage.type.interface.purebasic keyword.declaration.interface.purebasic -; ^^^^^^^^^^^ entity.name.interface.purebasic -; ^^^^^^^ keyword.other.purebasic -; ^^^^ entity.name.interface.purebasic +;; <- storage.type.interface.purebasic keyword.declaration.interface.purebasic +;;^^^^^^^ storage.type.interface.purebasic keyword.declaration.interface.purebasic +;; ^^^^^^^^^^^ entity.name.interface.purebasic +;; ^^^^^^^ keyword.other.purebasic +;; ^^^^ entity.name.interface.purebasic GetColor.i() -; ^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic SetColor(Color.i) -; ^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.end.purebasic EndInterface -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Interface TexturedCube Extends Cube -; <- storage.type.interface.purebasic keyword.declaration.interface.purebasic -;^^^^^^^^ storage.type.interface.purebasic keyword.declaration.interface.purebasic -; ^^^^^^^^^^^^ entity.name.interface.purebasic -; ^^^^^^^ keyword.other.purebasic -; ^^^^ entity.name.interface.purebasic +;; <- storage.type.interface.purebasic keyword.declaration.interface.purebasic +;;^^^^^^^ storage.type.interface.purebasic keyword.declaration.interface.purebasic +;; ^^^^^^^^^^^^ entity.name.interface.purebasic +;; ^^^^^^^ keyword.other.purebasic +;; ^^^^ entity.name.interface.purebasic GetTexture.i() -; ^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic SetTexture(TextureID.i) -; ^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.end.purebasic EndInterface -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic diff --git a/Tests/syntax_test_macros.pb b/Tests/syntax_test_macros.pb index 525d000..7d12dff 100644 --- a/Tests/syntax_test_macros.pb +++ b/Tests/syntax_test_macros.pb @@ -1,24 +1,24 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Macro MyNot -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic Not EndMacro -; <- keyword.other.purebasic -;^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^ keyword.other.purebasic Macro Test -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic Debug MacroExpandedCount -; ^^^^^^^^^^^^^^^^^^ keyword.other.purebasic +;; ^^^^^^^^^^^^^^^^^^ keyword.other.purebasic EndMacro -; <- keyword.other.purebasic -;^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^ keyword.other.purebasic UndefineMacro Test -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic diff --git a/Tests/syntax_test_module.pb b/Tests/syntax_test_module.pb index 0f0c246..0790fe0 100644 --- a/Tests/syntax_test_module.pb +++ b/Tests/syntax_test_module.pb @@ -1,26 +1,26 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit DeclareModule MyModule -; ^^^^^^^^ entity.name.namespace.purebasic -; <- meta.namespace.purebasic +;; ^^^^^^^^ entity.name.namespace.purebasic +;; <- meta.namespace.purebasic Declare MyMember() EndDeclareModule -; <- meta.namespace.purebasic -; <- keyword.other.purebasic -;^^^^^^^^^^^^^^^ keyword.other.purebasic +;; <- meta.namespace.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^^^^^ keyword.other.purebasic Module MyModule -; ^^^^^^^^ entity.name.namespace.purebasic -; <- meta.namespace.purebasic +;; ^^^^^^^^ entity.name.namespace.purebasic +;; <- meta.namespace.purebasic Procedure MyMember() Debug "Hello." EndProcedure EndModule -; <- meta.namespace.purebasic -; <- keyword.other.purebasic -;^^^^^^^^ keyword.other.purebasic +;; <- meta.namespace.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^ keyword.other.purebasic MyModule::MyMember() -; ^^ punctuation.accessor.purebasic +;; ^^ punctuation.accessor.purebasic diff --git a/Tests/syntax_test_newlist.pb b/Tests/syntax_test_newlist.pb index d9a2b58..e08d5be 100644 --- a/Tests/syntax_test_newlist.pb +++ b/Tests/syntax_test_newlist.pb @@ -1,19 +1,19 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit NewList Defaults() -; <- keyword.declaration.purebasic -;^^^^^^ keyword.declaration.purebasic -; ^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^^^^^ keyword.declaration.purebasic +;; ^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic NewList Names.s() -; <- keyword.declaration.purebasic -;^^^^^^ keyword.declaration.purebasic -; ^^^^^ entity.name.function.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^^^^^ keyword.declaration.purebasic +;; ^^^^^ entity.name.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_newmap.pb b/Tests/syntax_test_newmap.pb index 9e06a28..ed39b8c 100644 --- a/Tests/syntax_test_newmap.pb +++ b/Tests/syntax_test_newmap.pb @@ -1,19 +1,19 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit NewMap Continents() -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic NewMap Contries.s() -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_number.pb b/Tests/syntax_test_number.pb index 4cceb14..ea69c58 100644 --- a/Tests/syntax_test_number.pb +++ b/Tests/syntax_test_number.pb @@ -1,21 +1,21 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Global ThisIsAnInteger = 1 -; ^ constant.numeric.purebasic +;; ^ constant.numeric.purebasic Global ThisIsANegativeInteger = -1 -; ^^ constant.numeric.purebasic +;; ^^ constant.numeric.purebasic Global ThisIsAFloat.f = 1.0 -; ^^^ constant.numeric.purebasic +;; ^^^ constant.numeric.purebasic Global ThisIsANegativeFloat.f = -1.0 -; ^^^^ constant.numeric.purebasic +;; ^^^^ constant.numeric.purebasic Global ThisIsADouble.d = 123.5e-20 -; ^^^^^^^^^ constant.numeric.purebasic +;; ^^^^^^^^^ constant.numeric.purebasic Global ThisIsNegativeDouble.d = -123.5e-20 -; ^^^^^^^^^^ constant.numeric.purebasic +;; ^^^^^^^^^^ constant.numeric.purebasic diff --git a/Tests/syntax_test_others.pb b/Tests/syntax_test_others.pb index ff54398..ff2bff1 100644 --- a/Tests/syntax_test_others.pb +++ b/Tests/syntax_test_others.pb @@ -1,13 +1,13 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define a = 1, b = 2 Swap a, b -; <- keyword.other.purebasic -;^^^ keyword.other.purebasic +;;<- keyword.other.purebasic +;;^^ keyword.other.purebasic End 123 -; <- keyword.control.purebasic -;^^ keyword.control.purebasic +;;<- keyword.control.purebasic +;;^ keyword.control.purebasic diff --git a/Tests/syntax_test_pointer.pb b/Tests/syntax_test_pointer.pb index 8acde5b..4e63fe5 100644 --- a/Tests/syntax_test_pointer.pb +++ b/Tests/syntax_test_pointer.pb @@ -1,83 +1,83 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define On = 1 : Define The = 2 : Define Same = 3 : Define Line = 4 Define *eh = 0 -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^ punctuation.definition.variable -; ^^^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^ punctuation.definition.variable +;; ^^^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic Define eh = 1 -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic Define Factor = 1 Define Multiplication = 1, *In = 2, Definition = 2*Factor -; ^ punctuation.definition.variable -; ^^^ variable.other.purebasic -; ^ constant.numeric.purebasic -; ^ keyword.operator.arithmetic.purebasic -; ^^^^^^ variable.other.purebasic +;; ^ punctuation.definition.variable +;; ^^^ variable.other.purebasic +;; ^ constant.numeric.purebasic +;; ^ keyword.operator.arithmetic.purebasic +;; ^^^^^^ variable.other.purebasic Debug *eh -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^ variable.other.purebasic Debug 2 *eh -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic -; ^ constant.numeric.purebasic -; ^ keyword.operator.arithmetic.purebasic -; ^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic +;; ^ constant.numeric.purebasic +;; ^ keyword.operator.arithmetic.purebasic +;; ^^ variable.other.purebasic Debug 2 * eh -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic -; ^ constant.numeric.purebasic -; ^ keyword.operator.arithmetic.purebasic -; ^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic +;; ^ constant.numeric.purebasic +;; ^ keyword.operator.arithmetic.purebasic +;; ^^ variable.other.purebasic Debug 2*eh -; <- keyword.other.purebasic -;^^^^ keyword.other.purebasic -; ^ constant.numeric.purebasic -; ^ keyword.operator.arithmetic.purebasic -; ^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^^ keyword.other.purebasic +;; ^ constant.numeric.purebasic +;; ^ keyword.operator.arithmetic.purebasic +;; ^^ variable.other.purebasic Debug Multiplication**In -; ^^^^^^^^^^^^^^ variable.other.purebasic -; ^ keyword.operator.arithmetic.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^ variable.other.purebasic +;; ^^^^^^^^^^^^^^ variable.other.purebasic +;; ^ keyword.operator.arithmetic.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^ variable.other.purebasic Debug Multiplication -; ^^^^^^^^^^^^^^ variable.other.purebasic +;; ^^^^^^^^^^^^^^ variable.other.purebasic Debug *In -; ^ punctuation.definition.variable.purebasic -; ^^^ variable.other.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^ variable.other.purebasic Debug Definition -; ^^^^^^^^^^ variable.other.purebasic +;; ^^^^^^^^^^ variable.other.purebasic Debug @Multiplication -; ^^^^^^^^^^^^^^ variable.other.purebasic +;; ^^^^^^^^^^^^^^ variable.other.purebasic Structure MyStructure SomeValue.i *SomePointer -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^ variable.other.member.purebasic +;;^ punctuation.definition.variable.purebasic +;;^^^^^^^^^^^^ variable.other.member.purebasic EndStructure Procedure.i CreateMyStructure() @@ -85,28 +85,28 @@ Procedure.i CreateMyStructure() EndProcedure Define *MyScreen.MyStructure = CreateMyStructure() -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^ variable.other.purebasic Define *NullPointer = #Null -; <- keyword.declaration.purebasic -;^^^^^ keyword.declaration.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^ variable.other.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^ variable.other.constant.purebasic +;; <- keyword.declaration.purebasic +;;^^^^ keyword.declaration.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^ variable.other.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^ variable.other.constant.purebasic *MyScreen\SomePointer = *NullPointer -; <- punctuation.definition.variable.purebasic -; <- variable.other.purebasic -;^^^^^^^^ variable.other.purebasic -; ^ punctuation.accessor.purebasic -; ^^^^^^^^^^^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^ variable.other.purebasic +;; <- punctuation.definition.variable.purebasic +;; <- variable.other.purebasic +;;^^^^^^^ variable.other.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^^^^^^^^^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^ variable.other.purebasic Define *StringAddress = @"This is a string in memory" -; ^ punctuation.definition.variable.purebasic -; ^^^^^^^^^^^^^^ variable.other.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^^^^^^^^^ variable.other.purebasic diff --git a/Tests/syntax_test_procedures.pb b/Tests/syntax_test_procedures.pb index 2ad28d1..a70ac87 100644 --- a/Tests/syntax_test_procedures.pb +++ b/Tests/syntax_test_procedures.pb @@ -1,89 +1,89 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" Declare Minimum() -; <- storage.type.function.purebasic keyword.declaration.function.purebasic -;^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic -; ^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.type.function.purebasic keyword.declaration.function.purebasic +;;^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic +;; ^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic Declare.s GetUserName(*User.UserStructure, Capitalize.b = #False) -; <- storage.type.function.purebasic keyword.declaration.function.purebasic -;^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic -; ^ punctuation.separator.purebasic -; ^ meta.function.return-type.purebasic storage.type.purebasic -; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ variable.parameter.purebasic punctuation.definition.variable.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^^^^^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^ variable.other.constant.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.type.function.purebasic keyword.declaration.function.purebasic +;;^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ meta.function.return-type.purebasic storage.type.purebasic +;; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ variable.parameter.purebasic punctuation.definition.variable.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^^^^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^ variable.other.constant.purebasic +;; ^ punctuation.section.parens.end.purebasic ProcedureDLL Minimum() -; <- storage.type.function.purebasic keyword.declaration.function.purebasic -;^^^^^^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic -; ^ meta.function.purebasic -; ^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.type.function.purebasic keyword.declaration.function.purebasic +;;^^^^^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic +;; ^ meta.function.purebasic +;; ^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic EndProcedure Minimum() -; <- meta.function-call.purebasic -;^^^^^^^^ meta.function-call.purebasic -; <- variable.function.purebasic -;^^^^^^ variable.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- meta.function-call.purebasic +;;^^^^^^^ meta.function-call.purebasic +;; <- variable.function.purebasic +;;^^^^^ variable.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic Procedure.s GetUserName(*User.UserStructure, Capitalize.b = #False) -; <- storage.type.function.purebasic keyword.declaration.function.purebasic -;^^^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic -; ^ punctuation.separator.purebasic -; ^ meta.function.return-type.purebasic storage.type.purebasic -; ^^^^^^^^^^^ entity.name.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.parameters.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^^^^^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ punctuation.definition.variable.purebasic -; ^^^^^^ variable.other.constant.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.type.function.purebasic keyword.declaration.function.purebasic +;;^^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ meta.function.return-type.purebasic storage.type.purebasic +;; ^^^^^^^^^^^ entity.name.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.parameters.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^^^^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^^ variable.other.constant.purebasic +;; ^ punctuation.section.parens.end.purebasic Minimum() -; ^^^^^^^^^ meta.function-call.purebasic -; ^^^^^^^ variable.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^ meta.function-call.purebasic +;; ^^^^^^^ variable.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic -; <- meta.function.purebasic +;; <- meta.function.purebasic ProcedureReturn "Anonymous" -; <- meta.function.purebasic +;; <- meta.function.purebasic EndProcedure -; <- meta.function.purebasic +;; <- meta.function.purebasic GetUserName(Minimum(), #True) -; <- meta.function-call.purebasic -;^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function-call.purebasic -; <- variable.function.purebasic -;^^^^^^^^^^ variable.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^^^ variable.function.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- meta.function-call.purebasic +;;^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function-call.purebasic +;; <- variable.function.purebasic +;;^^^^^^^^^ variable.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^^^ variable.function.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_protected.pb b/Tests/syntax_test_protected.pb index 6bc3a72..348acb7 100644 --- a/Tests/syntax_test_protected.pb +++ b/Tests/syntax_test_protected.pb @@ -1,4 +1,4 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit @@ -7,7 +7,7 @@ a = 10 Procedure Change() Protected a -; ^^^^^^^^^ storage.modifier.purebasic +;; ^^^^^^^^^ storage.modifier.purebasic a = 20 EndProcedure diff --git a/Tests/syntax_test_prototypes.pb b/Tests/syntax_test_prototypes.pb index 2f4d9e7..672f7de 100644 --- a/Tests/syntax_test_prototypes.pb +++ b/Tests/syntax_test_prototypes.pb @@ -1,27 +1,27 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Prototype.i ProtoMessageBox(Window.i, Body$, Title$, Flags.i = 0) -; <- storage.type.function.purebasic keyword.declaration.function.purebasic -;^^^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^^^^^^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.definition.variable -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.definition.variable -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; <- storage.type.function.purebasic keyword.declaration.function.purebasic +;;^^^^^^^ storage.type.function.purebasic keyword.declaration.function.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^^^^^^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.definition.variable +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.definition.variable +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic diff --git a/Tests/syntax_test_pseudotypes.pb b/Tests/syntax_test_pseudotypes.pb index d5a523c..7fbbb35 100644 --- a/Tests/syntax_test_pseudotypes.pb +++ b/Tests/syntax_test_pseudotypes.pb @@ -1,34 +1,34 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Import "User32.lib" -; <- keyword.control.import.purebasic -;^^^^^ keyword.control.import.purebasic -; ^ punctuation.definition.string.begin.purebasic -; ^^^^^^^^^^^^ string.quoted.double.purebasic -; ^ punctuation.definition.string.end.purebasic +;; <- keyword.control.import.purebasic +;;^^^^ keyword.control.import.purebasic +;; ^ punctuation.definition.string.begin.purebasic +;; ^^^^^^^^^^^^ string.quoted.double.purebasic +;; ^ punctuation.definition.string.end.purebasic MessageBoxA(Window.i, Body.p-ascii, Title.p-ascii, Flags.i = 0) -; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^^ storage.type.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^ variable.parameter.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^^^^^^^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^^ storage.type.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^ variable.parameter.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic EndImport -; <- keyword.control.import.purebasic -;^^^^^^^^ keyword.control.import.purebasic +;; <- keyword.control.import.purebasic +;;^^^^^^^ keyword.control.import.purebasic diff --git a/Tests/syntax_test_repeat_until.pb b/Tests/syntax_test_repeat_until.pb index d25543d..2383279 100644 --- a/Tests/syntax_test_repeat_until.pb +++ b/Tests/syntax_test_repeat_until.pb @@ -1,13 +1,13 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define a = 0 Repeat -; <- keyword.control.purebasic -;^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^ keyword.control.purebasic a = a + 1 Until a > 100 -; <- keyword.control.purebasic -;^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^ keyword.control.purebasic diff --git a/Tests/syntax_test_runtime.pb b/Tests/syntax_test_runtime.pb index 8521d0e..c65c36b 100644 --- a/Tests/syntax_test_runtime.pb +++ b/Tests/syntax_test_runtime.pb @@ -1,10 +1,10 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define a = 20 Runtime a -; <- storage.modifier.purebasic -;^^^^^^ storage.modifier.purebasic +;; <- storage.modifier.purebasic +;;^^^^^ storage.modifier.purebasic Debug GetRuntimeInteger("a") diff --git a/Tests/syntax_test_select_endselect.pb b/Tests/syntax_test_select_endselect.pb index 7c43f86..dc51499 100644 --- a/Tests/syntax_test_select_endselect.pb +++ b/Tests/syntax_test_select_endselect.pb @@ -1,27 +1,27 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Define Value = 2 Select Value -; <- keyword.control.purebasic -;^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^ keyword.control.purebasic Case 1 -; ^^^^ keyword.control.purebasic +;; ^^^^ keyword.control.purebasic Debug "Value = 1" Case 2 -; ^^^^ keyword.control.purebasic +;; ^^^^ keyword.control.purebasic Debug "Value = 2" Case 20 -; ^^^^ keyword.control.purebasic +;; ^^^^ keyword.control.purebasic Debug "Value = 20" Default -; ^^^^^^^ keyword.control.purebasic +;; ^^^^^^^ keyword.control.purebasic Debug "I don't know" EndSelect -; <- keyword.control.purebasic -;^^^^^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^^^^^ keyword.control.purebasic diff --git a/Tests/syntax_test_shared.pb b/Tests/syntax_test_shared.pb index 38593ea..0904415 100644 --- a/Tests/syntax_test_shared.pb +++ b/Tests/syntax_test_shared.pb @@ -1,4 +1,4 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit @@ -6,7 +6,7 @@ a = 10 Procedure Change() Shared a -; ^^^^^^ storage.modifier.purebasic +;; ^^^^^^ storage.modifier.purebasic a = 20 EndProcedure diff --git a/Tests/syntax_test_static.pb b/Tests/syntax_test_static.pb index d39c559..2114127 100644 --- a/Tests/syntax_test_static.pb +++ b/Tests/syntax_test_static.pb @@ -1,4 +1,4 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit @@ -7,7 +7,7 @@ a = 10 Procedure Change() Static a -; ^^^^^^ storage.modifier.purebasic +;; ^^^^^^ storage.modifier.purebasic a + 1 Debug "In Procedure: " + Str(a) ; Will print 1, 2, 3 as the variable increments at each procedure call. EndProcedure diff --git a/Tests/syntax_test_structure.pb b/Tests/syntax_test_structure.pb index 3ece44b..ef7ba32 100644 --- a/Tests/syntax_test_structure.pb +++ b/Tests/syntax_test_structure.pb @@ -1,166 +1,166 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Structure Location -; <- storage.type.struct keyword.declaration.struct.purebasic -;^^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic -; ^^^^^^^^ entity.name.struct.purebasic +;; <- storage.type.struct keyword.declaration.struct.purebasic +;;^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic +;; ^^^^^^^^ entity.name.struct.purebasic X.d -; ^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic Y.d -; ^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic Z.d -; ^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic EndStructure -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Structure Venue Extends Location -; <- storage.type.struct keyword.declaration.struct.purebasic -;^^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic -; ^^^^^ entity.name.struct.purebasic -; ^^^^^^^ keyword.other.purebasic -; ^^^^^^^^ entity.name.struct.purebasic +;; <- storage.type.struct keyword.declaration.struct.purebasic +;;^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic +;; ^^^^^ entity.name.struct.purebasic +;; ^^^^^^^ keyword.other.purebasic +;; ^^^^^^^^ entity.name.struct.purebasic Name.s -; ^^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic EndStructure -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Dim Venues.Venue(10) Venues(0)\X = 1 -; ^ punctuation.accessor.purebasic -; ^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.accessor.purebasic +;; ^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic Venues(0)\Y = 2 -; ^ punctuation.accessor.purebasic -; ^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.accessor.purebasic +;; ^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic Venues(0)\Z = 3 -; ^ punctuation.accessor.purebasic -; ^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.accessor.purebasic +;; ^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic Structure WithList -; <- storage.type.struct keyword.declaration.struct.purebasic -;^^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic -; ^^^^^^^^ entity.name.struct.purebasic +;; <- storage.type.struct keyword.declaration.struct.purebasic +;;^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic +;; ^^^^^^^^ entity.name.struct.purebasic Name$ -; ^^^^^ variable.other.member.purebasic +;; ^^^^^ variable.other.member.purebasic Age.l -; ^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic List Friends$() -; ^^^^ keyword.declaration.purebasic -; ^^^^^^^^ variable.other.member.purebasic -; ^ punctuation.definition.variable.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^ keyword.declaration.purebasic +;; ^^^^^^^^ variable.other.member.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ punctuation.section.parens.end.purebasic EndStructure -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Structure WithArray -; <- storage.type.struct keyword.declaration.struct.purebasic -;^^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic -; ^^^^^^^^^ entity.name.struct.purebasic +;; <- storage.type.struct keyword.declaration.struct.purebasic +;;^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic +;; ^^^^^^^^^ entity.name.struct.purebasic a.l -; ^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic b.l[2] -; ^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.brackets.begin -; ^ constant.numeric.purebasic -; ^ punctuation.section.brackets.end +;; ^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.brackets.begin +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.brackets.end Array c.l(3,3) -; ^^^^^ keyword.declaration.purebasic -; ^ entity.name.function.forward-decl.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic -; ^ punctuation.section.parens.begin.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.separator.purebasic -; ^ constant.numeric.purebasic -; ^ punctuation.section.parens.end.purebasic +;; ^^^^^ keyword.declaration.purebasic +;; ^ entity.name.function.forward-decl.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic +;; ^ punctuation.section.parens.begin.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.separator.purebasic +;; ^ constant.numeric.purebasic +;; ^ punctuation.section.parens.end.purebasic EndStructure -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Structure WithPointer -; <- storage.type.struct keyword.declaration.struct.purebasic -;^^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic -; ^^^^^^^^^^^ entity.name.struct.purebasic +;; <- storage.type.struct keyword.declaration.struct.purebasic +;;^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic +;; ^^^^^^^^^^^ entity.name.struct.purebasic *Next.Person -; ^ punctuation.definition.variable.purebasic -; ^^^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^^^^^^ storage.type.purebasic +;; ^ punctuation.definition.variable.purebasic +;; ^^^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^^^^^^ storage.type.purebasic Name$ -; ^^^^^ variable.other.member.purebasic -; ^ punctuation.definition.variable.purebasic +;; ^^^^^ variable.other.member.purebasic +;; ^ punctuation.definition.variable.purebasic Age.b -; ^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic EndStructure -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Structure Type -; <- storage.type.struct keyword.declaration.struct.purebasic -;^^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic -; ^^^^ entity.name.struct.purebasic +;; <- storage.type.struct keyword.declaration.struct.purebasic +;;^^^^^^^ storage.type.struct keyword.declaration.struct.purebasic +;; ^^^^ entity.name.struct.purebasic Name$ -; ^^^^^ variable.other.member.purebasic -; ^ punctuation.definition.variable.purebasic +;; ^^^^^ variable.other.member.purebasic +;; ^ punctuation.definition.variable.purebasic StructureUnion -; ^^^^^^^^^^^^^^ keyword.other.purebasic +;; ^^^^^^^^^^^^^^ keyword.other.purebasic Long.l -; ^^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic Float.f -; ^^^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^^^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic Byte.b -; ^^^^ variable.other.member.purebasic -; ^ punctuation.separator.purebasic -; ^ storage.type.purebasic +;; ^^^^ variable.other.member.purebasic +;; ^ punctuation.separator.purebasic +;; ^ storage.type.purebasic EndStructureUnion -; ^^^^^^^^^^^^^^^^^ keyword.other.purebasic +;; ^^^^^^^^^^^^^^^^^ keyword.other.purebasic EndStructure -; <- keyword.other.purebasic -;^^^^^^^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^^^^^^ keyword.other.purebasic Structure WithFieldsNamedLikeKeywords End.i -; ^^^ variable.other.member.purebasic +;;^^^ variable.other.member.purebasic EndStructure NewList Something.WithFieldsNamedLikeKeywords() AddElement(Something()) Something()\End = 1 -; ^ punctuation.accessor.purebasic -; ^^^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic -; ^ constant.numeric.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic +;; ^ constant.numeric.purebasic Debug Something()\End -; ^ punctuation.accessor.purebasic -; ^^^ variable.other.member.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^ variable.other.member.purebasic diff --git a/Tests/syntax_test_threaded.pb b/Tests/syntax_test_threaded.pb index 656dfdc..82f8700 100644 --- a/Tests/syntax_test_threaded.pb +++ b/Tests/syntax_test_threaded.pb @@ -1,7 +1,7 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit Threaded Counter -; <- storage.modifier.purebasic -;^^^^^^^ storage.modifier.purebasic +;; <- storage.modifier.purebasic +;;^^^^^^ storage.modifier.purebasic diff --git a/Tests/syntax_test_while_wend.pb b/Tests/syntax_test_while_wend.pb index fa01778..9187aa6 100644 --- a/Tests/syntax_test_while_wend.pb +++ b/Tests/syntax_test_while_wend.pb @@ -1,4 +1,4 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit @@ -6,13 +6,13 @@ Define b = 0 Define a = 10 While a = 10 -; <- keyword.control.purebasic -;^^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^^ keyword.control.purebasic b = b+1 If b = 10 a = 11 EndIf Wend -; <- keyword.control.purebasic -;^^^ keyword.control.purebasic +;; <- keyword.control.purebasic +;;^^ keyword.control.purebasic diff --git a/Tests/syntax_test_with_endwith.pb b/Tests/syntax_test_with_endwith.pb index 0e99e5f..3ebcf75 100644 --- a/Tests/syntax_test_with_endwith.pb +++ b/Tests/syntax_test_with_endwith.pb @@ -1,4 +1,4 @@ -; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" +;; SYNTAX TEST "Packages/PureBasic/PureBasic.sublime-syntax" EnableExplicit @@ -11,29 +11,29 @@ EndStructure Define Friend.Person With Friend -; <- keyword.other.purebasic -;^^^ keyword.other.purebasic -; ^^^^^^ variable.other.purebasic +;; <- keyword.other.purebasic +;;^^ keyword.other.purebasic +;; ^^^^^^ variable.other.purebasic \Name$ = "Yann" -; ^ punctuation.accessor.purebasic -; ^^^^^ variable.other.member.purebasic -; ^ punctuation.definition.variable -; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^^^ variable.other.member.purebasic +;; ^ punctuation.definition.variable +;; ^ keyword.operator.assignment.purebasic \Age = 30 -; ^ punctuation.accessor.purebasic -; ^^^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic \Size = 196 -; ^ punctuation.accessor.purebasic -; ^^^^ variable.other.member.purebasic -; ^ keyword.operator.assignment.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^^ variable.other.member.purebasic +;; ^ keyword.operator.assignment.purebasic Debug \Size+\Size -; ^ punctuation.accessor.purebasic -; ^^^^ variable.other.member.purebasic -; ^ keyword.operator.arithmetic.purebasic -; ^ punctuation.accessor.purebasic -; ^^^^ variable.other.member.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^^ variable.other.member.purebasic +;; ^ keyword.operator.arithmetic.purebasic +;; ^ punctuation.accessor.purebasic +;; ^^^^ variable.other.member.purebasic EndWith -; <- keyword.other.purebasic -;^^^^^ keyword.other.purebasic +;; <- keyword.other.purebasic +;;^^^^^ keyword.other.purebasic