From b458292a69bf21b90d7646bf22fb40cdac9a28f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 6 Jan 2021 21:06:57 +0100 Subject: [PATCH] Target VimL upstream .sublime-syntax file (#1483) * Target VimL upstream .sublime-syntax file Upstream **VimL Syntax** has been updated to include `.sublime-syntax` file instead of `.tmLanguage`, therefore manually added `.sublime-syntax` is no longer needed * Remove .bin changes --- assets/syntaxes/02_Extra/VimL | 2 +- assets/syntaxes/02_Extra/VimL.sublime-syntax | 91 -------------------- 2 files changed, 1 insertion(+), 92 deletions(-) delete mode 100644 assets/syntaxes/02_Extra/VimL.sublime-syntax diff --git a/assets/syntaxes/02_Extra/VimL b/assets/syntaxes/02_Extra/VimL index 23afc890..7ebcaa1d 160000 --- a/assets/syntaxes/02_Extra/VimL +++ b/assets/syntaxes/02_Extra/VimL @@ -1 +1 @@ -Subproject commit 23afc890977bb1fd43fd05e7d983f994993d4982 +Subproject commit 7ebcaa1d987be059213f06bfc0833dcaea9e0b91 diff --git a/assets/syntaxes/02_Extra/VimL.sublime-syntax b/assets/syntaxes/02_Extra/VimL.sublime-syntax deleted file mode 100644 index 3f96a985..00000000 --- a/assets/syntaxes/02_Extra/VimL.sublime-syntax +++ /dev/null @@ -1,91 +0,0 @@ -%YAML 1.2 ---- -# http://www.sublimetext.com/docs/3/syntax.html -name: VimL -file_extensions: - - vim - - .vimrc -scope: source.viml -contexts: - main: - - include: comment - - include: string_quoted_double - - include: string_quoted_single - - include: string_regex - - include: inline_comment - - include: number_int - - include: number_hex - - include: keyword - - include: support_function - - include: support_variable - - include: support_type - - include: function_params - - include: function_definition - - include: function_call - - include: function - - include: variable - - include: expr - comment: - - match: ^\s*".*$ - scope: comment.line.quotes.viml - captures: - 1: punctuation.definition.comment.vim - expr: - - match: (\|\||&&|==(\?|#)?|(!|>|<)=(#|\?)?|(=|!)~(#|\?)?|(>|<)(#|\?)is|isnot|\.|\*|\\|%) - scope: storage.function.viml - function: - - match: \b(fu(n|nction)?|end(f|fu|fun|function)?)\b - scope: storage.function.viml - function_call: - - match: '(([sgbwtl]|)?:?[0-9a-zA-Z_#]+)(?=\()' - scope: support.function.any-method - function_definition: - - match: '^\s*(function)\s*!?\s+(?=(s:)?[0-9a-zA-Z_#]+\s*\()' - captures: - 1: storage.function.viml - push: - - meta_scope: meta.function.viml - - match: (\() - captures: - 1: punctuation.definition.parameters.begin.viml - pop: true - - match: "(s:)?[0-9a-zA-Z_#]+" - scope: entity.name.function.viml - function_params: - - match: '-\w+=' - scope: support.type.viml - inline_comment: - - match: '(?!\$)(")(?!\{).*$\n?' - scope: comment.line.quotes.viml - captures: - 1: punctuation.definition.comment.vim - keyword: - - match: \b(if|while|for|try|return|throw|end(if|for|while|try)?|au(g|group)|else(if|)?|do|in|catch|finally|:)\b - scope: keyword.control.viml - number_hex: - - match: "0x[0-9a-f]+" - scope: constant.numeric.hex - number_int: - - match: '-?\d+' - scope: constant.numeric.integer - string_quoted_double: - - match: '"(\\\\|\\"|\n[^\S\n]*\\|[^\n"])*"' - scope: string.quoted.double.viml - string_quoted_single: - - match: '''(''''|\n[^\S\n]*\\|[^\n''])*''' - scope: string.quoted.single.viml - string_regex: - - match: '[gvs]{1}/(\\\\|\\/|\n[^\S\n]*\\|[^\n/])*/' - scope: string.regexp.viml - support_function: - - match: \b(set(local|global)?|let|command|filetype|syntax|colorscheme|\w*map|\w*a(b|brev)?|syn|exe(c|cute)?|ec(ho|)?|au(tocmd|)?)\b - scope: support.function.viml - support_type: - - match: <.*?> - scope: support.type.viml - support_variable: - - match: '\b(am(enu|)?|(hl|inc)?search|[Bb]uf([Nn]ew[Ff]ile|[Rr]ead)?|[Ff]ile[Tt]ype)\b' - scope: support.variable.viml - variable: - - match: '([sSgGbBwWlLaAvV]:|@|$|&(?!&))\w*' - scope: variable.other.viml