diff options
author | dakkar <dakkar@thenautilus.net> | 2020-02-23 13:08:02 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-02-23 13:08:02 +0000 |
commit | 1a52243a685183b5fed189ab69bbeb8a0e13a1fe (patch) | |
tree | bfc3e4bb3e55ad736d7f9dfdf22b7b81eda42d38 | |
parent | use github: scheme instead of git+https: (diff) | |
download | color-1a52243a685183b5fed189ab69bbeb8a0e13a1fe.tar.gz color-1a52243a685183b5fed189ab69bbeb8a0e13a1fe.tar.bz2 color-1a52243a685183b5fed189ab69bbeb8a0e13a1fe.zip |
add rst grammar
-rw-r--r-- | index.js | 4 | ||||
-rw-r--r-- | package-lock.json | 4 | ||||
-rw-r--r-- | package.json | 1 |
3 files changed, 9 insertions, 0 deletions
@@ -11,6 +11,9 @@ highlighter.requireGrammarsSync({ highlighter.requireGrammarsSync({ "modulePath": require.resolve('language-openscad/package.json'), }); +highlighter.requireGrammarsSync({ + "modulePath": require.resolve('language-restructuredtext/package.json'), +}); const Selector = require('first-mate-select-grammar'); const selector = Selector(); @@ -25,6 +28,7 @@ function addExtensionsToGrammar(knownExtension,extraExtensions) { } addExtensionsToGrammar('cpp',['ino']); +addExtensionsToGrammar('rst',['rst.txt','rest.txt']); const server = http.createServer((req, res) => { const filename = req.headers['filename']; diff --git a/package-lock.json b/package-lock.json index 75e08cd..0da4398 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1856,6 +1856,10 @@ "version": "github:perl6/atom-language-perl6#9e7bab4157d2a4b16eecb1d2a5ae000cca0b27a9", "from": "github:perl6/atom-language-perl6" }, + "language-restructuredtext": { + "version": "github:Lukasa/language-restructuredtext#30706379beb55bf17b3404546e4e3dccff516b5d", + "from": "github:Lukasa/language-restructuredtext" + }, "lazy": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz", diff --git a/package.json b/package.json index 6c03406..54aae06 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "language-emacs-lisp": "github:Alhadis/language-emacs-lisp", "language-openscad": "github:rubyist/language-openscad", "language-perl6": "github:perl6/atom-language-perl6", + "language-restructuredtext": "github:Lukasa/language-restructuredtext", "less": "^3.0.1", "pm2": "^2.10.1" } |