Commit Graph

2340 Commits

Author SHA1 Message Date
George Sokianos d5d87789d5 innosetup changes 2024-04-24 21:01:21 +01:00
Takase 6ba5328697 Release v2.1.4 (#1772)
* changelog: add changes for 2.1.4

* chore: update version and changelog
2024-04-24 21:01:05 +01:00
Takase b419dca6ad ci: fix missing permission for creating releases (#1770) 2024-04-24 21:01:05 +01:00
Guldoman 2d8d39c7c0 Skip patterns matching nothing in `tokenizer` (#1743)
These patterns cause infinite loops, so warn about them and skip them.
2024-04-24 21:01:05 +01:00
Andrei Vinca a2b340efbe Fix BufferSize in g_read for Windows (#1722) 2024-04-24 21:01:05 +01:00
PerilousBooklet eee6bc24d0 Added Arduino syntax highlighting support alongside C++. (#1767) 2024-04-24 21:01:05 +01:00
PerilousBooklet be84a85dc9 Fixed some typos in core.init (#1755)
* Fixed some typos.

* Update data/core/init.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

* Update data/core/init.lua

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>

---------

Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
2024-04-24 21:01:05 +01:00
Guldoman e6d706f6b8 Limit `language_js` regex avoidance to numbers, and fix starting `/*` comments (#1744)
* Avoid starting regexes only after numbers in `language_js`

* Allow starting `/*` comments after numbers in `language_js`
2024-04-24 21:01:05 +01:00
Aziz Mazouz Jaber f76b7bd600 Add from symbol to support ESM (#1754) 2024-04-24 21:01:05 +01:00
Jan a6a4f2bd0b Add SerenityOS platform support (#1745)
* Add SerenityOS platform support

* remove cpp_std default option
2024-04-24 21:01:05 +01:00
Guldoman cd49490253 Rectify `LICENSE` dates and owners (#1748) 2024-04-24 21:01:05 +01:00
Takase 74c8d03aa0 scripts: not hardcode MSYSTEM (#1739) 2024-04-24 21:01:05 +01:00
Guldoman e69f3b8c13 Fix `language_js` regex/comment distinction (#1731) 2024-04-24 21:00:21 +01:00
Guldoman 27ae51762b Improve `CommandView` and `autocomplete` scroll behavior (#1732)
* Make command palette item scrolling more natural

Also add a config option for the maximum number of visible entries in the command palette.

* Make `autocomplete` item scrolling more natural
2024-04-24 21:00:21 +01:00
Guldoman ece51922a3 Improve `autocomplete` suggestions box behavior (#1734)
* Improve `autocomplete` suggestions box sizing

This avoids that the box gets too big because of non-visible items, and makes it reactive to window sizing.

* Draw ellipsis when `autocomplete` entries aren't fully visible
2024-04-24 21:00:21 +01:00
PerilousBooklet cf76b5857a Added .pyi extension to python. (#1728) 2024-04-24 21:00:21 +01:00
Velosofy 8fd5c78312 Add "Open with Lite XL" to windows' context menu (#1333)
Closes #423
2024-04-24 21:00:21 +01:00
George Sokianos 713bdfeb7d innosetup changes 2024-02-11 15:39:15 +00:00
Takase e87170b226 wasm cross file improvements (#1660)
* fix(wasm-cross): missing idbfs in newer emscripten

* refactor(wasm-cross): specify important option in cross file

* feat(wasm-cross): allow overriding emscripten path

* feat(wasm-cross): add file_packager as a binary
2024-02-11 15:38:51 +00:00
Takase 188297d6b4 readme: add minimum supported OSes (#1711)
* readme: add minimum supported OSes

* README: add linebreak between sentences
2024-02-11 15:38:51 +00:00
Takase 566da99680 process: fix unitialized variables (#1719)
* process: fix potential unitialized variables

* process: fix brace initializer error on Windows
2024-02-11 15:38:51 +00:00
Takase 14260166fc v2.1.3 (#1712)
* changelog: update changelog for v2.1.3

* update version in metadata

* changelog: fix formatting issue and release date

* appstream: update release date
2024-02-11 15:38:51 +00:00
Chloé Vulquin 2e26a0838c Add system.setenv (#1706)
* add system.setenv

* document system.setenv

* system.setenv: use wide versions of functions on windows

* do not include processenv.h

* system.setenv: report failure, including of utfconv

* system.setenv: free utfconv output
2024-02-11 15:38:51 +00:00
Luke aka SwissalpS 5ce34eb74c Fix comment typos in data/core/{init.lua,dirwatch.lua} (#1549)
* comment typo in data/core/init.lua

* init.lua reword comment

* Update dirwatch.lua

Some wording is still whacky, maybe next time

* Update dirwatch.lua

* clear up can/may be not nil confusion

* falsey vs falsy new wording to help out

* falsey -> falsy

* Update data/core/dirwatch.lua

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>

---------

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-02-11 15:38:51 +00:00
Takase 80c9128c43 process: style changes (#1709) 2024-02-11 15:38:51 +00:00
Takase ddddef076d language_js: support binary and octal representation (#1710) 2024-02-11 15:38:51 +00:00
vqn ad79e26425 autoreload docs only if their filename matches an actual file (#1698) 2024-02-11 15:38:51 +00:00
vqn dbeea0aff2 reorder nagview options on doc:save error to be more consistent with other nagview confirmations (#1696) 2024-02-11 15:38:51 +00:00
Fiji 3e91d07097 Improve number highlighting for python syntax highlighting (#1704)
* Improve number highlighting for python syntax highlighting

Adds support for octal and binary representation, as well uppercase characters (X, B and O)

* add underscore and negative hex/oct/bin value support

* Removed | from pattern
2024-02-11 15:38:51 +00:00
Chloé Vulquin 3897e59e6b Memory fixes (#1705)
* fix: free-before-init in renwin_init_surface when using sdl renderer

`ren->rensurface.surface` presupposes zero-initialized rensurface.
Rensurface was not actually zero-initialized.
It is now.

* fix: heap buffer overflow in process_env_free

`process_env_free` presupposed that it was null-terminated.
Pass length to free instead.

* use calloc instead of memset for zero-init

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>

---------

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-02-11 15:38:51 +00:00
vqn 2755117e2d Fix doc:create-cursor-previous/next-line with tabs (#1697)
* use DocView.translate to split cursor on previous/next line

* use dv.doc instead of doc()
2024-02-11 15:38:51 +00:00
Takase 97717b4511 v2.1.2 (#1695)
* chore: update versions

* chore(changelog): update changelog for v2.1.2
2024-02-11 15:38:51 +00:00
Velosofy 9378646680 Add "Open with Lite XL" to windows' context menu (#1333)
Closes #423
2024-02-11 15:38:51 +00:00
George Sokianos 721e0c8ee3 innosetup changes 2023-12-29 10:22:11 +00:00
Velosofy ffe1e6775d Add "Open with Lite XL" to windows' context menu (#1333)
Closes #423
2023-12-29 10:21:54 +00:00
Jan 7b67a5d81b turn window_renderer into managed pointer (#1683)
* turn window_renderer into managed pointer
this will make it easier to move it into userdata in the future

* remove unused function, remove comment
2023-12-26 13:16:33 +00:00
Adam Harrison cca61ab8ec Fixed a minor bug, should close issue #1680. 2023-12-26 13:16:33 +00:00
ThaCuber c45463459c fix nagbar failed save message (#1678)
* fix nagbar failed save message

- visually separated statements with a `.`
- first statement slightly rewritten
- use `'` rather than `"`

* yeahhhh no back to `"`
2023-12-26 13:16:33 +00:00
Guldoman 39993a6d93 Expose plaintext syntax (#1652) 2023-12-26 13:16:33 +00:00
Guldoman a29327e375 Use `\r\n` for new files on Windows (#1596)
* Use `\r\n` for new files on Windows

* Add `config.line_endings`
2023-12-26 13:16:33 +00:00
Takase 7111b8a6c9 feat(process): allow commands and envs on proces_start (#1477)
* feat(process): allow commands and envs on proces_start

* refactor(process): copy process arguments once whenever possible

Refactors the code to use an arglist type which is just lpCmdline on Windows
and a list in Linux.
The function automatically escapes the command when it is needed, avoiding
a second copy.

This also allows UTF-8 commands btw.

* fix(process): fix invalid dereference

* refactor(process): mark xstrdup as potentially unused

* feat(process): add parent process environment when launching process

* fix(process): fix operator precedence with array operators

* fix(process): fix segfault when freeing random memory

* fix(process): fix wrong check for setenv()

* fix(process): fix accidentally initializing an array by assignment

* fix(process): clear return value if success
2023-12-26 13:16:33 +00:00
takase1121 a9ac33429e chore(deps): update Lua 2023-12-26 13:16:33 +00:00
takase1121 ad1fad2632 chore(deps): update SDL2 2023-12-26 13:16:33 +00:00
takase1121 79bae532b9 chore(deps): update pcre2 2023-12-26 13:16:33 +00:00
takase1121 41813604e1 chore(deps): update freetype 2023-12-26 13:16:33 +00:00
takase1121 7b064bae6b fix(ci,build.sh): un-hardcode lua subproject detection 2023-12-26 13:16:33 +00:00
Takase 2d36359e6e Revert "feat(subprojects): update wraps (#1577)"
This reverts commit a97de87d869c227c2d41595d76ecafdc29e76bef.
2023-12-26 13:16:33 +00:00
Guldoman dac8d1ac8e Improve font/color change detection in `language_md` (#1614)
* Delay setting font for custom `language_md` token types

* Improve font/color change detection in `language_md`
2023-12-26 13:16:33 +00:00
Guldoman 5719f4de6f Use x offset to define render command rect in `rencache_draw_text` (#1618)
* Return x offset for the first character in `ren_font_group_get_width`

* Use x offset to define render command rect in `rencache_draw_text`
2023-12-26 13:16:33 +00:00
Adam e14af4604a Reverted cursor API to something more compatible with old API. (#1674)
* Reverted cursor API to something more compatible with old API.

* Implemented discord discussion.

* Reduced thiccness of overwrite cursor.
2023-12-26 13:16:33 +00:00