Commit Graph

1063 Commits

Author SHA1 Message Date
Neko Box Coder
b39b5b5916 Changing behavior for TryBindKey() for lua to not write to bindings.json 2025-11-18 19:12:04 +00:00
cutelisp
0b9c7c0c4a Add toggle & togglelocal command (#3783) 2025-09-05 20:56:02 +02:00
ZRZ
bbea2a3f28 Fix highlighting for auto in C++ (#3836) 2025-09-02 19:46:35 +02:00
Jöran Karl
b37fa2e34d Merge pull request #3846 from JoeKar/revert/syntax-rules
syntax: Revert removal of `rules: []`
2025-09-02 19:28:06 +02:00
Mikko
4b2f8aa828 make arduino filetype detection less aggressive (#3848) 2025-09-01 20:46:10 +02:00
Jöran Karl
52f629cee7 syntax: Fix invalid escape of ' in php 2025-08-31 18:58:15 +02:00
Jöran Karl
d9245d9659 syntax: Add the empty rules: [] to the files currently "missing" them 2025-08-31 18:53:45 +02:00
Jöran Karl
3fd2fe3cc7 Revert "doc: syntax: Add hint about incompatibilities to previous versions"
This reverts commit 02e69dddbe.
2025-08-31 13:53:34 +02:00
Jöran Karl
0277516eef Revert "syntax: Remove empty rules in regions"
This reverts commit a9b513a28a.
2025-08-31 13:47:53 +02:00
deepdring
b8057f28c6 refactor: use a more modern writing style to simplify code (#3834)
Signed-off-by: deepdring <deepdrink@icloud.com>
2025-08-26 02:00:51 +02:00
Mikko
6b15bf3b19 fix shell highlighting for variables with leading underscore (#3833) 2025-08-20 20:51:34 +02:00
remisalmon
86a9fac7ef Fix variable expansion regex in fish syntax (#3830) 2025-08-16 13:30:47 +02:00
Aleksey Sakovets
bce573b6c9 Add syntax highlighting for meson build system (#3236)
* Add syntax highlighting for meson build system

It is basically a port of upstream syntax highlighting for vim,
but a bit less noisy (e.g numbers are not colored).

* meson.yaml: fix meson_options.txt detection

* meson.yaml: remove empty rules

* meson.yaml: add highlighting for operators and brackets

* meson.yaml: rearrange the keywords to be in alphabetical order

* meson.yaml: add highlighting for numbers
2025-08-12 19:36:09 +02:00
cutelisp
c9f84cd2b7 Documentation Fix (#3818) 2025-07-26 11:39:12 +02:00
cutelisp
f97cba34d2 Small Documentation Improvement (#3786) 2025-07-25 21:02:33 +02:00
Dmytro Maluka
dbdf753f27 Merge pull request #3310 from Neko-Box-Coder/CppAndCLiteralSeparatorFix
Changing syntax behavior for single quote to allow binary and hex literal separator
2025-07-20 16:14:32 +02:00
Dmytro Maluka
7492195a5b Merge pull request #3799 from dmaluka/doc-update
Some documentation improvements
2025-07-19 14:19:11 +02:00
Jonathan
cf92f77fdc Add syntax highlighting for PRQL (#3313)
* Add syntax highlighting for PRQL

Adds a syntax highlighting mode for the PRQL query language.

PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement.
https://prql-lang.org/
https://github.com/PRQL/prql

* Update runtime/syntax/prql.yaml

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>

* Update runtime/syntax/prql.yaml

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>

* Update runtime/syntax/prql.yaml

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>

* Update runtime/syntax/prql.yaml

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>

* Update prql.yaml

* Update prql.yaml

---------

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>
2025-07-08 11:45:29 +02:00
Dmytro Maluka
0694cd2c1b help: Document passing *tcell.EventMouse to mouse action callbacks 2025-07-05 17:23:19 +02:00
Dmytro Maluka
c267c7c9aa help: Update and correct documentation for onAction return value
The documentation says that the returned value of onAction callbacks
is used for determining whether the view should be relocated, which
has nothing to do with reality, this returned value is used for a
completely different thing. So update the docs accordingly.
2025-07-05 17:23:19 +02:00
Dmytro Maluka
ffdd4b43dd help: Update the list of mouse actions 2025-07-05 17:23:19 +02:00
Dmytro Maluka
61d7f68f9b help: Document binding keys to lua functions
This is still not properly documented (except for the example in
tutorial.md), so document it.
2025-07-05 17:23:19 +02:00
Neko Box Coder
4db233acf4 Minor fix for comment plugin and migrating to use "comment.type" option (#3424)
Fixing comment plugin not using user settings when overriding default
setting,
Migrating comment plugin to use "comment.type" option instead
2025-06-24 22:30:26 +02:00
theredcmdcraft
97b5e3506e Nftables improvements (#3517) 2025-06-20 21:00:25 +02:00
Mikko
29dc892009 Fix Ruby syntax highlighting for predefined variables (#3778) 2025-06-20 20:53:46 +02:00
Jöran Karl
cd0dc9a701 options: Add truecolor to control the usage (#2867)
- `auto`: enable usage of true color if it is supported, otherwise disable it
- `on`: force usage of true color
- `off`: disable true color usage

Co-authored-by: Dmytro Maluka <dmitrymaluka@gmail.com>
2025-05-26 18:25:07 +02:00
Codemanticism
bf255b6c35 rust.yaml: Add the keyword "union" (#3759) 2025-05-25 12:59:59 +02:00
Shinsuke Nashimoto
91832d0016 Fixed a broken colorscheme (sunny-day) due to a typo (#3735) 2025-05-06 20:38:45 +02:00
cutelisp
b61c8a4e1a Deleted duplicated line (#3728) 2025-04-28 19:55:03 +02:00
Dmytro Maluka
1bd86a8f79 Build constraints: switch to new syntax
Make gofmt happy about that.
2025-03-24 22:54:32 +01:00
Jöran Karl
02e69dddbe doc: syntax: Add hint about incompatibilities to previous versions 2025-03-15 17:45:45 +01:00
Sertonix
78f0a9cd30 doc: syntax: remove syntax_checker.go from README.md
The patch is taken from:
https://github.com/zyedidia/micro/pull/2738

The mentioned file was already removed with the following commit:
fe3186ba9d

The `micro` binary itself takes now care of validating the syntax definitions
and informs about possible issues.
2025-03-15 14:58:14 +01:00
Dmytro Maluka
0b75031ac5 syntax: asm: highlight C-like comments (#3696)
Different assemblers have different syntaxes for comments: ";", "#",
"!", "|", "@", "*" and finally C-like comments "//" and "/* ... */".

Micro currently highlights only ";". This is causing various problems
with broken highlighting with other types of comments (i.e. those not
recognized by micro as comments), when the text in those comments
contains special characters, causing wrong highlighting of text after
them.

On the other hand, highlighting comments like "#", "|" etc would cause
conflicts with other syntax elements, e.g. constants in ARM assembly,
preprocessor directives, arithmetic expressions etc.

So let's highlight at least C-like comments. They are quite commonly
used and they are not so likely to cause conflicts with other syntax
elements.
2025-03-15 14:29:45 +01:00
Mikko
7d16dcdaa6 List more bindable actions in help keybindings (#3685) 2025-03-11 07:35:24 +01:00
Jöran Karl
98356765c1 Merge pull request #3273 from JoeKar/fix/save-atomically
save: Perform write process safe
2025-03-08 14:04:41 +01:00
Dmytro Maluka
2ae9812f47 Merge pull request #3673 from niten94/status-pass-repodir
`status.lua`: Display commit and branch of repository where file is located
2025-03-04 20:15:23 +01:00
niten94
85e2b3bd86 status.lua: Display hash and branch of file
Return current commit hash and branch of repository where file in buffer
is located instead of current directory.
2025-03-02 09:40:27 +08:00
edwloef
3c68655f33 add syntax highlighting for new rust keywords and types (#3677) 2025-03-01 13:58:30 +01:00
Jöran Karl
6e8daa117a ioutil: Remove deprecated functions where possible 2025-02-28 18:57:53 +01:00
niten94
0985d2cadd sh.yaml: Match parameter expansions with braces using \w 2025-02-23 11:39:11 +08:00
niten94
d992c606c5 status.lua: Move import lines to beginning of file 2025-02-15 23:17:33 +08:00
niten94
4abd966a99 sh.yaml: Match valid parameter expansions without braces
Match parameter expansions with valid name only in shell syntax file
when there are no braces.
2025-02-15 07:54:22 +08:00
Andriamanitra
b9f1fc8da2 add missing linters to help linter 2025-02-07 23:56:25 +02:00
magneticminou
728526682e plugin: linter: add ruff to documentation 2025-02-07 14:12:29 -03:00
magneticminou
c105c940fe plugin: linter: change in ruff configuration
Use `--output-format concise` as suggested to get exact column of error

Co-authored-by: Mikko <Andriamanitra@users.noreply.github.com>
2025-02-06 19:28:47 -03:00
magneticminou
cdc9ab17f2 plugin: linter: add ruff to default configuration. 2025-02-06 17:05:04 -03:00
usfbih8u
b432bb7cfa docs: remove duplicated line (#3647) 2025-02-01 09:41:25 +01:00
Jöran Karl
e4b0ad7107 Merge pull request #3620 from JoeKar/feature/cursor-overwrite-indicator
statusline: Provide `overwrite` mode indicator
2025-01-31 17:59:36 +01:00
Jöran Karl
57a6e81ddb statusline: Provide overwrite mode indicator 2025-01-30 20:19:37 +01:00
Jöran Karl
5ee7fb6014 Merge pull request #3576 from niten94/optmd-quote-sort
`options.md`: Add, sort entries and adjust formatting
2025-01-29 17:13:53 +01:00