@thigasdevelopment/luam 0.18.0 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +15 -2
  2. package/luam.mjs +5 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -44,7 +44,7 @@ class Luam {
44
44
  end
45
45
  }
46
46
 
47
- local luam = new Luam('0.15.6')
47
+ local luam = new Luam('0.18.0')
48
48
 
49
49
  outputServerLog(luam:compile('src/server/main.luam'))
50
50
  ```
@@ -248,7 +248,20 @@ Optional fields cover `meta.xml` info, `compiler`, `sources`, `assets`,
248
248
  The **Luam** VS Code extension runs a language server built on the same frontend
249
249
  as the CLI, so the editor and the build never disagree: syntax highlighting,
250
250
  diagnostics on every keystroke, scoped completion, hover types, go to
251
- definition, find references and rename.
251
+ definition, find references and rename. It ships the `Luam Dark` and
252
+ `Luam Light` themes — pick one under **File → Preferences → Theme → Color
253
+ Theme**:
254
+
255
+ <table>
256
+ <tr>
257
+ <td><img src="assets/theme-luam-dark.svg" alt="The README example highlighted by the Luam Dark theme" width="100%"></td>
258
+ <td><img src="assets/theme-luam-light.svg" alt="The README example highlighted by the Luam Light theme" width="100%"></td>
259
+ </tr>
260
+ <tr>
261
+ <td align="center"><sub><b>Luam Dark</b></sub></td>
262
+ <td align="center"><sub><b>Luam Light</b></sub></td>
263
+ </tr>
264
+ </table>
252
265
 
253
266
  Supported and auto-installed by `luam setup`: VS Code, VS Code Insiders, Cursor,
254
267
  VSCodium and Windsurf. The language server itself is editor-agnostic and speaks
package/luam.mjs CHANGED
@@ -6584,7 +6584,7 @@ import { tmpdir } from "node:os";
6584
6584
  import { join as join2 } from "node:path";
6585
6585
 
6586
6586
  // src/cli/version.ts
6587
- var VERSION = true ? "0.18.0" : "0.0.0-dev";
6587
+ var VERSION = true ? "0.18.2" : "0.0.0-dev";
6588
6588
  var PROGRAM_NAME = "luam";
6589
6589
  var PROGRAM_DESCRIPTION = "luam \u2014 the Luam compiler for Multi Theft Auto resources.";
6590
6590
 
@@ -19457,9 +19457,11 @@ function emitMembers(state, statement) {
19457
19457
  entries2.push(indentLine(state, `${markSource(state, member.position.line, `${statement.name}:${member.name}`)}${emitMethod(state, statement.name, member)}`));
19458
19458
  continue;
19459
19459
  }
19460
- if (member.value !== null && !member.decorators.some((decorator) => decorator.name === "Lazy")) {
19461
- entries2.push(indentLine(state, `${markSource(state, member.position.line, statement.name)}${member.name} = ${emitExpression(state, member.value)}`));
19460
+ if (member.decorators.some((decorator) => decorator.name === "Lazy")) {
19461
+ continue;
19462
19462
  }
19463
+ const value = member.value === null ? "nil" : emitExpression(state, member.value);
19464
+ entries2.push(indentLine(state, `${markSource(state, member.position.line, statement.name)}${member.name} = ${value}`));
19463
19465
  }
19464
19466
  for (const generated of state.generatedMembers.get(statement) ?? []) {
19465
19467
  entries2.push(indentLine(state, `${markSource(state, generated.position.line, `${statement.name}:${generated.name}`)}${emitMethod(state, statement.name, generated)}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thigasdevelopment/luam",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "The Luam compiler for Multi Theft Auto resources.",
5
5
  "keywords": [
6
6
  "mta",