diff options
author | Christopher Trudeau <ctrudeau@arsensa.com> | 2021-06-21 16:25:58 -0400 |
---|---|---|
committer | Christopher Trudeau <ctrudeau@arsensa.com> | 2021-06-21 16:25:58 -0400 |
commit | fbdcfa8066f98d896c2a746aa4fc6d5869f7e8d2 (patch) | |
tree | 7a470bdef2d0a36d0bd7ca1d9ae9df116d0717e2 /pygments/lexers/javascript.py | |
parent | 18a7fdb2ce1695e471071f7d635cb98de6080ee8 (diff) | |
download | pygments-git-fbdcfa8066f98d896c2a746aa4fc6d5869f7e8d2.tar.gz |
Changes from code review:
- renamed nodecon to nodejsrepl
- removed bad mimetypes
Diffstat (limited to 'pygments/lexers/javascript.py')
-rw-r--r-- | pygments/lexers/javascript.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py index 1ea1f553..501ccfe9 100644 --- a/pygments/lexers/javascript.py +++ b/pygments/lexers/javascript.py @@ -1540,9 +1540,9 @@ class JuttleLexer(RegexLexer): class NodeConsoleLexer(Lexer): """ - For parsing JavaScript within an interactive Node.js shell, such as: + For parsing within an interactive Node.js REPL, such as: - .. sourcecode:: nodejs + .. sourcecode:: nodejsrepl > let a = 3 undefined @@ -1554,11 +1554,12 @@ class NodeConsoleLexer(Lexer): '4' > b == a false + + .. versionadded: 2.10 """ - name = 'JavaScript Node.js console session' - aliases = ['nodejs', 'nodecon'] - mimetypes = ['application/javascript', 'application/x-javascript', - 'text/x-javascript', 'text/javascript'] + name = 'Node.js REPL console session' + aliases = ['nodejsrepl', ] + mimetypes = ['text/x-nodejsrepl', ] def get_tokens_unprocessed(self, text): jslexer = JavascriptLexer(**self.options) |