Skip to content

Commit

Permalink
enh(lua) add 'pluto' as an alias (#4110)
Browse files Browse the repository at this point in the history
[Pluto](https://pluto-lang.org/) is a fork of Lua that uses the .pluto extension.
  • Loading branch information
Sainan authored Sep 20, 2024
1 parent 9a6f65a commit 5543529
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Core Grammars:
- enh(erlang) OTP25/27 maybe statement [nixxquality][]
- enh(dart) Support digit-separators in number literals [Sam Rawlins][]
- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `record`, `required` and `scoped` [Alvin Joy][]
- enh(lua) add 'pluto' as an alias [Sainan]
- enh(bash) add reserved keywords `time` and `coproc` [Álvaro Mondéjar][]
- fix(c) - Fixed hex numbers with decimals [Dxuian]
- fix(ruby) - fix `|=` operator false positives (as block arguments) [Aboobacker MK]
Expand Down Expand Up @@ -47,6 +48,7 @@ CONTRIBUTORS
[Dxuian]:https://github.com/Dxuian
[Aboobacker MK]: https://github.com/tachyons
[Imken]: https://github.com/immccn123
[Sainan]: https://github.com/Sainan
[Osmocom]: https://github.com/osmocom
[Álvaro Mondéjar]: https://github.com/mondeja

Expand Down
2 changes: 1 addition & 1 deletion SUPPORTED_LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The table below shows the full list of languages (and corresponding classes/alia
| LiveCode Server | livecodeserver | |
| LiveScript | livescript, ls | |
| LookML | lookml | [highlightjs-lookml](https://github.com/spectacles-ci/highlightjs-lookml) |
| Lua | lua | |
| Lua | lua, pluto | |
| Luau | luau | [highlightjs-luau](https://github.com/highlightjs/highlightjs-luau) |
| Macaulay2 | macaulay2 | [highlightjs-macaulay2](https://github.com/d-torrance/highlightjs-macaulay2) |
| Makefile | makefile, mk, mak, make | |
Expand Down
1 change: 1 addition & 0 deletions src/languages/lua.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function(hljs) {
];
return {
name: 'Lua',
aliases: ['pluto'],
keywords: {
$pattern: hljs.UNDERSCORE_IDENT_RE,
literal: "true false nil",
Expand Down

0 comments on commit 5543529

Please sign in to comment.