aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_c.lua
AgeCommit message (Collapse)Author
2024-08-09Improvements to c/c++ language plugins (#128)Jefferson González
* Match enum names same as with structs and unions * Match single line type declarations to better match code like: ```c custome_type* function_name (type *param_name) { /*...*/ } ``` * Added matching of single line param declaration without modifiers * Allow spaces between function name and parameters list * Also distinguish upper case constants when used as function calls * Added matching of generic type declarations
2024-06-28Added custom symbols to language c and cpp (#116)Jefferson González
This allows matching symbols like #include or #ifndef so plugins like autocomplete can provide a list of the available keywords.
2024-06-12improve number highlighting for c lite-xl/lite-xl#1752thacuber2a03
* add unsigned suffix * add long suffixes * reorder octal literals and add suffix for hex numbers * fix integer and float suffixes too many characters, send help
2022-07-13[chore]: Delete useless $NCarrezDev
follow up on Guldoman's comment
2022-07-06[chore]: Update syntaxNCarrezDev
Harmonizing the syntax files Now inline comment are a single string instead of a table of strings. -(language_c): Removed whitespaces breaking indent -(language_html): Removed trailing whitespace
2022-05-31plugins: dropped --lite-xl version tagjgmdev
2022-04-03Bumping version numbers.Adam Harrison
2022-03-29language_c/cpp: fixes and improvementsjgmdev
* support colorization of function and variables type declarations * support the macro concatenation operator ## * support what seems to be new cpp number notation format #'### * improved uppercase constants matching
2022-03-11language_c: fixes and improvementsjgmdev
* Do not compete with language_cpp.lua over the .h and .inl files, these files can contain both cpp and c so we choose the former which supports both syntaxes. * Added support for magic and uppercase constants.
2021-12-26fallback to toggle-line-comment and vice versa if neededtakase1121
2021-12-25add toggle-block-commenttakase1121
2021-12-15Set `void` to `keyword2` in `language_c` and `language_cpp` pluginsGuldoman
Move `void` to the same syntax type used by other data types.
2021-11-21Add names to language pluginsGuldoman
2021-08-172.0 changelog and modversion updates.Adam Harrison
2021-07-20Merged dev to master.Adam Harrison
2021-07-19Add language_cpp pluginsFrancesco Abbate
Brought form the 1.16.12 release. It provides support for C++ using multi-part syntax patterns. Take the priority over C language plugins for header files.
2021-05-19support for multiple groups in one pattern (#196)liquidev
2021-05-05Introduce new plugin versioning tag mod-versionFrancesco Abbate
New plugins should use the version tag: -- mod-version: 1 The old version tag "-- lite-xl 1.16" will be considerer equivalent to mod-version 1.
2021-04-06Add plugin verification by version tagFrancesco Abbate
2020-03-07Moved .c, .lua and .md language syntaxes from core.syntax to pluginsrxi