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 /index.js | |
parent | use github: scheme instead of git+https: (diff) | |
download | color-1a52243a685183b5fed189ab69bbeb8a0e13a1fe.tar.gz color-1a52243a685183b5fed189ab69bbeb8a0e13a1fe.tar.bz2 color-1a52243a685183b5fed189ab69bbeb8a0e13a1fe.zip |
add rst grammar
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 4 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']; |