mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +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
+2
-2
@@ -1398,7 +1398,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||
- core: fix build on Alpine
|
||||
- core: remove file FindTCL.cmake
|
||||
- core: display an error on missing dependency in CMake ([#916](https://github.com/weechat/weechat/issues/916), [#956](https://github.com/weechat/weechat/issues/956))
|
||||
- debian: disable Javascript plugin on Debian Sid and Ubuntu Eoan
|
||||
- debian: disable JavaScript plugin on Debian Sid and Ubuntu Eoan
|
||||
- debian: build with Guile 2.2
|
||||
- guile: add support of Guile 2.2, disable `/guile eval` ([#1098](https://github.com/weechat/weechat/issues/1098))
|
||||
- python: add detection of Python 3.8
|
||||
@@ -1448,7 +1448,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||
### Build
|
||||
|
||||
- core: fix compilation with autotools on FreeBSD 12.0
|
||||
- debian: disable Javascript plugin on Debian Buster/Bullseye ([#1374](https://github.com/weechat/weechat/issues/1374))
|
||||
- debian: disable JavaScript plugin on Debian Buster/Bullseye ([#1374](https://github.com/weechat/weechat/issues/1374))
|
||||
- python: compile with Python 3 by default
|
||||
- python: use pkg-config to detect Python ([#1382](https://github.com/weechat/weechat/issues/1382))
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ weechat_js_load (const char *filename, const char *code)
|
||||
char *source;
|
||||
|
||||
/* make C compiler happy */
|
||||
/* TODO: implement load of code in Javascript */
|
||||
/* TODO: implement load of code in JavaScript */
|
||||
(void) code;
|
||||
|
||||
source = weechat_file_get_content (filename);
|
||||
|
||||
@@ -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