From a63806c9c657913aad2497495f768ac78a78ad58 Mon Sep 17 00:00:00 2001 From: Dan Billings Date: Fri, 15 Sep 2017 15:48:02 -0400 Subject: [PATCH] put up a moving sign for Sublime text highlighting --- highlighters/SublimeText/README.md | 34 +- highlighters/SublimeText/WDL.YAML-tmLanguage | 107 ------ highlighters/SublimeText/WDL.tmLanguage | 330 ------------------- 3 files changed, 1 insertion(+), 470 deletions(-) delete mode 100644 highlighters/SublimeText/WDL.YAML-tmLanguage delete mode 100644 highlighters/SublimeText/WDL.tmLanguage diff --git a/highlighters/SublimeText/README.md b/highlighters/SublimeText/README.md index b18f8d2a..bbf1edde 100644 --- a/highlighters/SublimeText/README.md +++ b/highlighters/SublimeText/README.md @@ -1,33 +1 @@ -WDL Syntax Highlighter for [SublimeText][1] and TextMate -=================================================== - -Installation ([SublimeText][1]) --------------------------- -This set of instructions assumes [SublimeText][1] running on a Mac - -* Create a directory `~/Library/Application Support/Sublime Text 3/Packages/WDL Syntax Highlighting` - * For version 2, replace *Sublime Text 3* with *Sublime Text 2* -* Copy the `WDL.tmLanguage` file to this new directory -* Restart [SublimeText][1], open a WDL file, enjoy! - -Installation ([TextMate][2]) --------------------------- -* Drag the `WDL.tmLanguage` generated above onto the [TextMate][2] application. -* This will convert it and leave you in the BundleEditor window, close the window. -* Open a WDL file, enjoy! - -Building .tmLanguage file -------------------------- -This repository has the `WDL.tmLanguage` file that you can use in the installation section to start using the syntax highlighter immediately. However, if you care to make changes to the current tmLanguage file, you will need to edit `WDL.YAML-tmLanguage` and then use [SublimeText][1] to recompile the `WDL.tmLanguage` file. To do this, you can use the following set of instructions (assumes [SublimeText][1] running on a Mac): - -* Install [SublimeText][1] 2 or 3 -* Install the [Package Control][3] package -* Use [Package Control][3] to install `PackageDev` (CMD+SHIFT+P | Package Control : Install Package) -* Open the `WDL.YAML-tmLanguage` file (File | Open...) -* Open the Command Palette (CMD+SHIFT+P) -* Select the "PackageDev: Convert (YAML,JSON, Plist) to..." option -* This should write the `WDL.tmLanguage` file to the same directory as `WDL.YAML-tmLanguage` - -[1]: http://www.sublimetext.com/ "SublimeText" -[2]: https://macromates.com/ "TextMate" -[3]: https://packagecontrol.io/ "Package Control" +## Moved to [it's own repo](https://github.com/broadinstitute/wdl-sublime-syntax-highlighter) diff --git a/highlighters/SublimeText/WDL.YAML-tmLanguage b/highlighters/SublimeText/WDL.YAML-tmLanguage deleted file mode 100644 index 30fc6465..00000000 --- a/highlighters/SublimeText/WDL.YAML-tmLanguage +++ /dev/null @@ -1,107 +0,0 @@ -# [PackageDev] target_format: plist, ext: tmLanguage ---- -name: WDL -scopeName: source.wdl -fileTypes: [wdl] -uuid: 29cdcefa-8185-46f9-988a-2310d2244661 - -patterns: -- name: keyword.control.import.wdl - match: \b(?:(import|as))\b -- name: keyword.operator.assignment.wdl - match: \= -- name: keyword.operator.comparison.wdl - match: <\=|>\=|\=\=|<|>|\!\= -- name: keyword.operator.assignment.augmented.wdl - match: \+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\= -- name: keyword.operator.arithmetic.wdl - match: \+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~ -- name: constant.language.wdl - match: \b(true|false)\b -- name: support.inout.wdl - comment: input output keywords - match: \b(input|output)\b -- include: '#builtin_types' -- include: '#comments' -- include: '#input_output' -- include: '#keywords' -- include: '#string_quoted_single' -- include: '#string_quoted_double' - -repository: - builtin_types: - name: support.type.wdl - match: (? - diff --git a/highlighters/SublimeText/WDL.tmLanguage b/highlighters/SublimeText/WDL.tmLanguage deleted file mode 100644 index 56baf630..00000000 --- a/highlighters/SublimeText/WDL.tmLanguage +++ /dev/null @@ -1,330 +0,0 @@ - - - - - author - Andrew Teixeira <teixeira@broadinstitute.org> - fileTypes - - wdl - - name - WDL - patterns - - - match - \b(?:(import|as))\b - name - keyword.control.import.wdl - - - match - \= - name - keyword.operator.assignment.wdl - - - match - <\=|>\=|\=\=|<|>|\!\= - name - keyword.operator.comparison.wdl - - - match - \+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\= - name - keyword.operator.assignment.augmented.wdl - - - match - \+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~ - name - keyword.operator.arithmetic.wdl - - - match - \b(true|false)\b - name - constant.language.wdl - - - comment - input output keywords - match - \b(input|output)\b - name - support.inout.wdl - - - include - #builtin_types - - - include - #comments - - - include - #input_output - - - include - #keywords - - - include - #string_quoted_single - - - include - #string_quoted_double - - - repository - - builtin_types - - match - (?<!\.)\b(Array|Boolean|File|Float|Int|Map|Object|String|Uri)\b - name - support.type.wdl - - comments - - patterns - - - captures - - 1 - - name - punctuation.definition.comment.wdl - - - match - (#).*$\n? - name - comment.line.number-sign.wdl - - - - constant_placeholder - - match - (?i:%(\([a-z_]+\))?#?0?\-?[ ]?\+?([0-9]*|\*)(\.([0-9]*|\*))?[hL]?[a-z%]) - name - constant.other.placeholder.wdl - - escaped_char - - captures - - 1 - - name - constant.character.escape.hex.wdl - - 10 - - name - constant.character.escape.linefeed.wdl - - 11 - - name - constant.character.escape.return.wdl - - 12 - - name - constant.character.escape.tab.wdl - - 13 - - name - constant.character.escape.vertical-tab.wdl - - 2 - - name - constant.character.escape.octal.wdl - - 3 - - name - constant.character.escape.newline.wdl - - 4 - - name - constant.character.escape.backlash.wdl - - 5 - - name - constant.character.escape.double-quote.wdl - - 6 - - name - constant.character.escape.single-quote.wdl - - 7 - - name - constant.character.escape.bell.wdl - - 8 - - name - constant.character.escape.backspace.wdl - - 9 - - name - constant.character.escape.formfeed.wdl - - - match - (\\x[0-9a-fA-F]{2})|(\\[0-7]{3})|(\\\n)|(\\\\)|(\\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v) - - escaped_unicode_char - - captures - - 1 - - name - constant.character.escape.unicode.16-bit-hex.wdl - - 2 - - name - constant.character.escape.unicode.32-bit-hex.wdl - - 3 - - name - constant.character.escape.unicode.name.wdl - - - match - (\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z0-9\, ]+\}) - - keywords - - patterns - - - match - \s*(call|command|output|runtime|task|workflow)\s+ - name - keyword.other.wdl - - - - string_quoted_double - - patterns - - - begin - (") - beginCaptures - - 1 - - name - punctuation.definition.string.begin.wdl - - - comment - double quoted string - end - (") - endCaptures - - 1 - - name - punctuation.definition.string.end.wdl - - 2 - - name - invalid.illegal.unclosed-string.wdl - - - name - string.quoted.double.single-line.wdl - patterns - - - include - #constant_placeholder - - - include - #escaped_char - - - - - - string_quoted_single - - patterns - - - begin - (') - beginCaptures - - 1 - - name - punctuation.definition.string.begin.wdl - - - comment - single quoted string - end - (') - endCaptures - - 1 - - name - punctuation.definition.string.end.wdl - - 2 - - name - invalid.illegal.unclosed-string.wdl - - - name - string.quoted.single.single-line.wdl - patterns - - - include - #constant_placeholder - - - include - #escaped_char - - - - - - - scopeName - source.wdl - uuid - 29cdcefa-8185-46f9-988a-2310d2244661 - -