mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
spelling: javascript
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Sébastien Helleu
parent
e6cd8c9519
commit
c30949b411
@@ -57,7 +57,7 @@ from unparse import ( # noqa: E402
|
||||
UnparseLua,
|
||||
UnparseTcl,
|
||||
UnparseGuile,
|
||||
UnparseJavascript,
|
||||
UnparseJavaScript,
|
||||
UnparsePhp,
|
||||
)
|
||||
|
||||
@@ -279,12 +279,12 @@ class WeechatGuileScript(WeechatScript):
|
||||
'(weechat_init)\n')
|
||||
|
||||
|
||||
class WeechatJavascriptScript(WeechatScript):
|
||||
"""A WeeChat script written in Javascript."""
|
||||
class WeechatJavaScriptScript(WeechatScript):
|
||||
"""A WeeChat script written in JavaScript."""
|
||||
|
||||
def __init__(self, tree, source_script, output_dir):
|
||||
super(WeechatJavascriptScript, self).__init__(
|
||||
UnparseJavascript, tree, source_script, output_dir,
|
||||
super(WeechatJavaScriptScript, self).__init__(
|
||||
UnparseJavaScript, tree, source_script, output_dir,
|
||||
'javascript', 'js', comment_char='//')
|
||||
|
||||
def write_footer(self, output):
|
||||
|
||||
@@ -1125,9 +1125,9 @@ class UnparseGuile(UnparsePython):
|
||||
)
|
||||
|
||||
|
||||
class UnparseJavascript(UnparsePython):
|
||||
class UnparseJavaScript(UnparsePython):
|
||||
"""
|
||||
Unparse AST to generate Javascript script code.
|
||||
Unparse AST to generate JavaScript script code.
|
||||
|
||||
Note: only part of AST types are supported (just the types used by
|
||||
the script to test WeeChat scripting API).
|
||||
|
||||
Reference in New Issue
Block a user