This also removes header detection for INI syntax, which could
occasionally cause other file types (such as systemd service files)
to be detected as INI.
Adding an S seems more intuitive here. The command you are being asked to run there completes to:
`help commands`
not `help command` as one might expect.
Although maybe help aliases might also be something to consider?
* Multiple changes
- Fixed overlapping between the macros and some statements.
- Added "t" and "abs" as types.
- Removed "fun0", "fun1", "clo0", "clo1", ..., "prf" from types and added them to the special block as effects.
- Added "lin", "lincloptr0" and "lincloptr1" as effects.
- Added "do" and "static" as statements.
- Added "tupz!" and "prerr!" to the special block.
- Fixed some typos.
* Updated regex for exhaustive types
* Final touches
* Removed "t" from types
* Minor fix
* Improved support for floats and integers
Make it comply with https://github.com/Hibou57/PostiATS-Utilities/blob/master/doc/lexemes-guide.md
* Chars are now interpreted as strings
Less troubling when working with '"' inside chars or multiline strings
* Reverted strings and chars from multiline to one line
For some reason, having strings on the same line as other symbols breaks the highlighting on the latter
* Add "ldouble" type
* Added syntax highlighting for ATS
* Fixed "////" comment not working as intended
Added a hack to make it impossible to match the end of the comment
* Fixed typo, added '#' and '@' as symbols
* Refactored cursor location login into a function. Fixed buffer overflow when line position is 1 more than file lines
* Fixed crash when -startpos has an invalid argument
* Adapted tests to new interface
* Fixed bug where -startpos with lines 0 and 1 would both be on the first line
* Changed Fatalf format back to digits
* Fixed issues with buffer cursor location. Added tests for new function
* ParseCursorLocation will now return an error when path doesnt contain line/col
* Fixed off-by-one line error
* Fixed tests to account for subtracting 1 from the line index
* Now can open Windows full-path from command line arg
Example that now works: micro.exe D:\myfile.txt
* Now correctly retrieves the path from the input path string. Except for single-letter filenames
* Fixed line/cols, need to make the code prettier
* Fixed path matching with regex by @Pariador
* Fixed not stripping the line/col args from file path
* Added tests for ParseCursorLocation
* add binding for more primitive backspace
* support selecting page up and page down
* fix matchbraceleft for braces that start on x=0
* fix multiline copy-paste indenting
let's say you have two lines like
<space><space>line1
<space><space>line2
so you start from cursor x=0 and select both lines, then paste.
we don't want any leading whitespace in this case, because the
cursor is already at x=0 and the selection already includes
whitespace.