From 60b68196d7514636730ed243c1ca36577147457b Mon Sep 17 00:00:00 2001 From: William Claude Tumeo Date: Mon, 9 Feb 2015 23:34:28 -0200 Subject: [PATCH] Update version --- grammars/python-console.cson | 18 --- grammars/python-traceback.cson | 34 ----- grammars/regular expressions (python).cson | 154 --------------------- grammars/renpy.cson | 8 +- settings/language-python.cson | 2 +- 5 files changed, 5 insertions(+), 211 deletions(-) delete mode 100644 grammars/python-console.cson delete mode 100644 grammars/python-traceback.cson delete mode 100644 grammars/regular expressions (python).cson diff --git a/grammars/python-console.cson b/grammars/python-console.cson deleted file mode 100644 index f85fc4e..0000000 --- a/grammars/python-console.cson +++ /dev/null @@ -1,18 +0,0 @@ -'scopeName': 'text.python.console' -'name': 'Python Console' -'fileTypes': [ - 'doctest' - 'pycon' -] -'patterns': [ - { - 'match': '^(>{3}|\\.{3}|In \\[\\d+\\]:) (.+)$' - 'captures': - '1': - 'name': 'punctuation.separator.prompt.python.console' - '2': - 'patterns': [ - 'include': 'source.python' - ] - } -] diff --git a/grammars/python-traceback.cson b/grammars/python-traceback.cson deleted file mode 100644 index a73e873..0000000 --- a/grammars/python-traceback.cson +++ /dev/null @@ -1,34 +0,0 @@ -'scopeName': 'text.python.traceback' -'name': 'Python Traceback' -'fileTypes': [ - 'pytb' -] -'patterns': [ - { - 'match': '^ File ("[^"]+"), line (\\d+)(?:, in (.+))?$' - 'captures': { - '1': - 'name': 'string.python.traceback' - '2': - 'name': 'constant.numeric.python.traceback' - '3': - 'name': 'entity.name.function.python.traceback' - } - } - { - 'match': '^ (.+)$' - 'captures': - '1': - 'patterns': [ - 'include': 'source.python' - ] - } - { - 'match': '^([^\\s:]+):(?: (.+))?$' - 'captures': - '1': - 'name': 'entity.name.type.class.python.traceback' - '2': - 'name': 'string.python.traceback' - } -] diff --git a/grammars/regular expressions (python).cson b/grammars/regular expressions (python).cson deleted file mode 100644 index b3295a0..0000000 --- a/grammars/regular expressions (python).cson +++ /dev/null @@ -1,154 +0,0 @@ -'comment': 'Matches Python\'s regular expression syntax.' -'fileTypes': [ - 're' -] -'foldingStartMarker': '(/\\*|\\{|\\()' -'foldingStopMarker': '(\\*/|\\}|\\))' -'name': 'Regular Expressions (Python)' -'patterns': [ - { - 'match': '\\\\[bBAZzG]|\\^|\\$' - 'name': 'keyword.control.anchor.regexp' - } - { - 'match': '\\\\[1-9][0-9]?' - 'name': 'keyword.other.back-reference.regexp' - } - { - 'match': '[?+*][?+]?|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??' - 'name': 'keyword.operator.quantifier.regexp' - } - { - 'match': '\\|' - 'name': 'keyword.operator.or.regexp' - } - { - 'begin': '\\(\\?\\#' - 'end': '\\)' - 'name': 'comment.block.regexp' - } - { - 'comment': 'We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.' - 'match': '(?<=^|\\s)#\\s[[a-zA-Z0-9,. \\t?!-:][^\\x{00}-\\x{7F}]]*$' - 'name': 'comment.line.number-sign.regexp' - } - { - 'match': '\\(\\?[iLmsux]+\\)' - 'name': 'keyword.other.option-toggle.regexp' - } - { - 'match': '(\\()(\\?P=([a-zA-Z_][a-zA-Z_0-9]*\\w*))(\\))' - 'name': 'keyword.other.back-reference.named.regexp' - } - { - 'begin': '(\\()((\\?=)|(\\?!)|(\\?<=)|(\\?)|(\\?:))?' - 'beginCaptures': - '1': - 'name': 'punctuation.definition.group.regexp' - '3': - 'name': 'punctuation.definition.group.capture.regexp' - '4': - 'name': 'entity.name.section.group.regexp' - '5': - 'name': 'punctuation.definition.group.capture.regexp' - '6': - 'name': 'punctuation.definition.group.no-capture.regexp' - 'end': '(\\))' - 'endCaptures': - '1': - 'name': 'punctuation.definition.group.regexp' - 'name': 'meta.group.regexp' - 'patterns': [ - { - 'include': '$self' - } - ] - } - { - 'include': '#character-class' - } -] -'repository': - 'character-class': - 'patterns': [ - { - 'match': '\\\\[wWsSdDhH]|\\.' - 'name': 'constant.character.character-class.regexp' - } - { - 'match': '\\\\.' - 'name': 'constant.character.escape.backslash.regexp' - } - { - 'begin': '(\\[)(\\^)?' - 'beginCaptures': - '1': - 'name': 'punctuation.definition.character-class.regexp' - '2': - 'name': 'keyword.operator.negation.regexp' - 'end': '(\\])' - 'endCaptures': - '1': - 'name': 'punctuation.definition.character-class.regexp' - 'name': 'constant.other.character-class.set.regexp' - 'patterns': [ - { - 'include': '#character-class' - } - { - 'captures': - '2': - 'name': 'constant.character.escape.backslash.regexp' - '4': - 'name': 'constant.character.escape.backslash.regexp' - 'match': '((\\\\.)|.)\\-((\\\\.)|[^\\]])' - 'name': 'constant.other.character-class.range.regexp' - } - ] - } - ] -'scopeName': 'source.regexp.python' diff --git a/grammars/renpy.cson b/grammars/renpy.cson index 55e36c4..c82f732 100644 --- a/grammars/renpy.cson +++ b/grammars/renpy.cson @@ -100,12 +100,12 @@ { 'comment': 'keywords that alter flow from within a block' 'name': 'keyword.control.statement.python' - 'match': '\\b(at|label|init|nvl|scene|show|screen|stop|play|define|image|voice|call|jump|menu|imagemap|hotspot|text|add|key|use|bar|with|zorder|style|is|button|break|continue|pass|return|yield)\\b' + 'match': '\\b(at|label|init|nvl|scene|show|screen|stop|play|define|image|voice|call|jump|menu|imagemap|hotspot|text|add|key|use|bar|with|zorder|style|is|button|window|hbox|vbox|mousearea|imagebutton|config|break|continue|pass|return|yield)\\b' } { - 'comment': 'keywords of a rosinha color' - 'name': 'constant.numeric.integer.decimal.python' - 'match': '\\b(color|size|xpos|ypos|xanchor|yanchor|action|area|hovered|unhovered|xalign|yalign|idle|hover|ground|alpha|python|clicked|modal|text_style|default|spacing)\\b' + 'comment': 'keywords of screen statement' + 'name': 'support.type.python' + 'match': '\\b(color|size|xpos|ypos|xanchor|yanchor|action|area|hovered|unhovered|xalign|yalign|idle|hover|ground|alpha|python|clicked|modal|text_style|default|spacing|yminimum|xminimum|ymaximum|xmaximum|yoffset|xoffset|has|who|what|tag|renpy|pos|value)\\b' } { 'comment': 'keyword operators that evaluate to True or False' diff --git a/settings/language-python.cson b/settings/language-python.cson index 77c9c41..eb28c18 100644 --- a/settings/language-python.cson +++ b/settings/language-python.cson @@ -4,5 +4,5 @@ 'tabLength': 4 'foldEndPattern': '^\\s*"""\\s*$' 'commentStart': '# ' - 'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while|menu|label|screen|window|hbox|vbox|init|python)\\b.*:\\s*$' + 'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while|menu|label|screen|window|hbox|vbox|init|python|imagemap|imagebutton|show|mousearea)\\b.*:\\s*$' 'decreaseIndentPattern': '^\\s*(elif|else|except|finally)\\b.*:'