From db4539be37dddbafd6ab1773ef8dbd4130615e62 Mon Sep 17 00:00:00 2001 From: Nikita Rushmanov Date: Thu, 11 Dec 2014 22:58:00 -0800 Subject: [PATCH] Add syntax highlighting for JavaScript --- JavaScript-DocBlockr.YAML-tmLanguage | 17 ++++++++++++ JavaScript-DocBlockr.tmLanguage | 40 ++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 JavaScript-DocBlockr.YAML-tmLanguage create mode 100644 JavaScript-DocBlockr.tmLanguage diff --git a/JavaScript-DocBlockr.YAML-tmLanguage b/JavaScript-DocBlockr.YAML-tmLanguage new file mode 100644 index 0000000..8b5ae67 --- /dev/null +++ b/JavaScript-DocBlockr.YAML-tmLanguage @@ -0,0 +1,17 @@ +# [PackageDev] target_format: plist, ext: tmLanguage +--- +name: JavaScript DocBlockr +scopeName: source.js.docblockr +fileTypes: [js] +uuid: 27fe7d8c-8d0a-4d30-96e3-47e47b9d6b77 + +patterns: +- name: comment.block.documentation.docblockr + begin: '/\*\*' + end: '\*/' + patterns: + - name: keyword.other.docblockr + match: '@\w+' + +- include: source.js +... \ No newline at end of file diff --git a/JavaScript-DocBlockr.tmLanguage b/JavaScript-DocBlockr.tmLanguage new file mode 100644 index 0000000..475227a --- /dev/null +++ b/JavaScript-DocBlockr.tmLanguage @@ -0,0 +1,40 @@ + + + + + fileTypes + + js + + name + JavaScript DocBlockr + patterns + + + begin + /\*\* + end + \*/ + name + comment.block.documentation.docblockr + patterns + + + match + @\w+ + name + keyword.other.docblockr + + + + + include + source.js + + + scopeName + source.js.docblockr + uuid + 27fe7d8c-8d0a-4d30-96e3-47e47b9d6b77 + +