Sha256: 115ad7ce2ab96e3db0c8594dadab616d13f67d05addfd857d413e546b209cc4f

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

# Encoding: UTF-8

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 config/syntax/Scilab.rb