From c30949b411534c71c26283b92b24c0bfcc392444 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 6 Sep 2024 08:26:37 -0400 Subject: [PATCH] spelling: javascript Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- src/plugins/javascript/weechat-js.cpp | 2 +- tests/scripts/python/testapigen.py | 10 +++++----- tests/scripts/python/unparse.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50359444e..b3e63da7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp index c717839b1..f0e13b940 100644 --- a/src/plugins/javascript/weechat-js.cpp +++ b/src/plugins/javascript/weechat-js.cpp @@ -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); diff --git a/tests/scripts/python/testapigen.py b/tests/scripts/python/testapigen.py index c417bdd54..6fa8cf4d3 100755 --- a/tests/scripts/python/testapigen.py +++ b/tests/scripts/python/testapigen.py @@ -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): diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py index 5e22db7d3..44e7be51c 100755 --- a/tests/scripts/python/unparse.py +++ b/tests/scripts/python/unparse.py @@ -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).