lib/code_rippa/syntax/scilab.syntax in code_rippa-0.0.7 vs lib/code_rippa/syntax/scilab.syntax in code_rippa-1.0.0
- old
+ new
@@ -1,41 +1,41 @@
----
+---
name: Scilab
-fileTypes:
+fileTypes:
- sce
- sci
- tst
- dem
scopeName: source.scilab
uuid: 14374AA3-A329-4623-8DFA-1ACC2CE222B9
-foldingStartMarker: ^(?!.*//.*).*\b(if|while|for|function|select)\b
-patterns:
+foldingStartMarker: "^(?!.*//.*).*\\b(if|while|for|function|select)\\b"
+patterns:
- name: comment.line.double-slash.scilab
- begin: //
- end: $\n?
+ begin: "//"
+ end: "$\\n?"
- name: constant.numeric.scilab
- match: \b(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?\b
+ match: "\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?\\b"
- name: support.constant.scilab
- match: (%inf|%i|%pi|%eps|%e|%nan|%s|%t|%f)\b
+ match: "(%inf|%i|%pi|%eps|%e|%nan|%s|%t|%f)\\b"
- name: string.quoted.double.scilab
begin: "\""
end: "\"(?!\")"
- patterns:
+ patterns:
- name: constant.character.escape.scilab
match: "''|\"\""
- name: string.quoted.single.scilab
- begin: (?<![\w\]\)])'
+ begin: "(?<![\\w\\]\\)])'"
end: "'(?!')"
- patterns:
+ patterns:
- name: constant.character.escape.scilab
match: "''|\"\""
-- captures:
- "1":
+- captures:
+ '1':
name: keyword.control.scilab
- "2":
+ '2':
name: entity.name.function.scilab
- match: \b(function)\s+(?:[^=]+=\s*)?(\w+)(?:\s*\(.*\))?
+ match: "\\b(function)\\s+(?:[^=]+=\\s*)?(\\w+)(?:\\s*\\(.*\\))?"
- name: keyword.control.scilab
- match: \b(if|then|else|elseif|while|for|function|end|endfunction|return|select|case|break|global)\b
+ match: "\\b(if|then|else|elseif|while|for|function|end|endfunction|return|select|case|break|global)\\b"
- name: punctuation.separator.continuation.scilab
- match: \.\.\.\s*$
-foldingStopMarker: \b(endfunction|end)\b
+ match: "\\.\\.\\.\\s*$"
+foldingStopMarker: "\\b(endfunction|end)\\b"