aboutsummaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)AuthorFilesLines
2025-12-30lua: filetype: fix collision for lexers that target text filesJason Lenz1-10/+3
2025-12-23Add missing janet and todo.txt lexers to filetype.lua~engenforge1-0/+6
2025-12-14Use STYLE_WHITESPACE for spaces, newlines, and tabsLaurence de Bruxelles1-0/+1
Allow theming the replacement characters shown for showspaces, showtabs, and/or shownewlines.
2025-11-28Add command completion with tab keyMax Schillinger1-4/+14
In the command prompt, press <tab> to get a list of all available commands and pick one (using vis-menu). This works also after typing the first letters of a command (p.e. `:la<tab>`). Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
2025-11-28filetype: detect additional shell filesunrealapex1-1/+1
2025-11-28lua/lexers: synchronization with new release scintillua_6.6mitchell21-63/+316
Bugfixes: - Fixed Pascal numeric literals. - Fixed folding of HTML/XML comments and XML processing instructions. - Fixed incorrectly highlighting '..' range operators between numbers. Changes: - Added Janet and todo.txt lexers. - Updated Python lexer to recognize t-strings. - Migrated ini and Dart lexers. - Updated org lexer word lists.
2025-06-13lua/lexers: update to scintillua 6.5Matěj Cepl7-532/+720
This is an amalgamation of the following upstream commits: - Overhauled API documentation for lexer.lua. - Fixed Markdown to allow code fence blocks to be indented. - Use GitHub Pages' Primer theme for documentation. Build static pages with Jekyll, like GitHub Pages does. - Migrated systemd lexer. Thanks to Matěj Cepl. - Migrated Lisp lexer and highlight character escapes. Thanks to Matěj Cepl. - Migrated rpmspec lexer and made some improvements. Thanks to Matěj Cepl. - Modernized reST lexer. Thanks to Matěj Cepl. - Markdown lexer should just tag the start of a blockquote. The quote's contents may contain markdown. - Output lexer can highlight CSI color sequences. - Allow lexers to define their own fold functions. - Added custom folder for Markdown headers. - Added `lexer.line_start`, `lexer.line_end` and `lexer.text_range()`. - Fixed Markdown lexer to not lex some continuation lines as code. - Fixed SciTE not using Scintillua's markdown lexer. - Markdown lexer should not highlight secondary paragraphs in list items as code blocks. - Have SciTE recognize CMakeLists.txt.
2025-04-01filetype: use .container extension for podman containersMatěj Cepl1-2/+2
2025-02-22update to scintillua-6.4 + 1 (org-mode lexer)Matěj Cepl155-155/+259
2025-02-22complete-filename: speed-up the tilda handlingMatěj Cepl1-2/+3
2025-02-22introduce new `asciidoc` file typeMatěj Cepl1-0/+3
2025-01-19complete-filename: complete tilda as $HOME as wellMatěj Cepl1-0/+6
2025-01-04accommodate vis for changes with updates in the lexersMatěj Cepl1-3/+9
2025-01-04Add Nix lexerorbitalquark2-0/+103
Thanks to Samuel Marquis.
2025-01-04Recognize float suffixes in C lexerorbitalquark1-1/+1
2025-01-04Migrate Haskell lexerorbitalquark1-17/+17
Thanks to Samuel Marquis.
2025-01-04Add Factor lexerorbitalquark2-0/+72
Thanks to John Benediktsson.
2025-01-04Rename 'ansi_c', 'dmd', and 'rstats' lexers to 'c', 'd', and 'r'orbitalquark6-11/+7
Originally this was to prevent clashes with Textadept's language-specific key handling, but this is no longer applicable.
2025-01-04lexers: switch to tabs for indentationorbitalquark138-5242/+5238
2025-01-04Fix errors with folding in reST lexerorbitalquark1-2/+2
The lexer runs without error, but still does not really work.
2025-01-04Output lexer: match absolute program paths instead of just namesorbitalquark1-2/+4
2025-01-04Migrate Literate Coffeescript lexerorbitalquark1-9/+7
2025-01-04Allow unfinished Makefile function definitions to be highlightedorbitalquark1-2/+2
2025-01-04Update lexer LDocorbitalquark1-12/+12
2025-01-04Add 'org' directive to asm lexerorbitalquark1-2/+2
2025-01-04Increase the default LPeg stack sizeorbitalquark1-0/+2
It is not clear how large this value should be. It appears to be a function of grammar complexity. For example, a problematic HTML file requires a value of 1329 to work, but removing either the 'attribute' rule or an embedded lexer reduces the limit. However, identifying which files trigger a stack overflow is not trivial. It does not appear to depend on file size. For example, the problematic HTML file is 125K, but a non-problematic HTML file of 500K works.
2025-01-04Add C23 attributes to C lexerorbitalquark1-3/+17
Based on contribution from Samuel Marquis.
2025-01-04Improve performance of the text lexermitchell1-0/+2
Instead of highlighting non-whitespace characters one at a time, highlight whole ranges.
2025-01-02introduce new 'meson' file type and meson options filenamessewn1-1/+1
2024-11-14lua: fix table member reference in set_syntaxFlorian Fischer1-1/+1
Reported-By: aimixsaka <aimixsaka@gmail.com>
2024-10-26fix[filetype]: Recognize Cython source files as Python as wellMatěj Cepl1-1/+1
2024-10-26vis: introduce new `usfm` file typeMatěj Cepl1-0/+3
2024-09-13complete-word: pipe the candidates directly to the commandFlorian Fischer1-2/+1
2024-08-28introduce new `wiki` file typeMatěj Cepl1-0/+3
2024-08-28introduce new `org` file typeMatěj Cepl1-0/+3
2024-07-26remove duplicate and obsolete lexer vbscript.luaMatěj Cepl1-63/+0
Relates-to: https://github.com/orbitalquark/scintillua/issues/68 Relates-to: https://github.com/orbitalquark/scintillua/commit/dee7d765a005 Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
2024-07-26pull latest changes from scintilluamitchell2-5/+6
This combines: Added 'done' literal to Hare lexer. Initialize fold constants when Scintillua is used as a standalone library.
2024-07-26add missing lexer specific styles to solarized themeMatěj Cepl1-0/+120
This is a parallel to https://github.com/martanne/vis/pull/1197 Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
2024-07-04Add additional html style tags to base-16.luajvvv1-0/+2
This closes https://github.com/martanne/vis/issues/1196.
2024-05-30Fail silently when syntax has no lexerMichiel van den Heuvel3-12/+9
This'll patch vis.lexers.load to return nil when the lexer could not be found. Previously it would've errored out, which the load in lexer.lua still will as this is used in lexers themselves. Another possibility is to only patch set_syntax in vis.lua and the WIN_HIGHLIGHT handler in vis-std.lua, but as most references to vis.lexers.load already handle a nil return, this seems better.
2024-05-06lua: filetype: properly search for lexer pathRandy Palamar1-2/+2
fixes #1190: Missing mail.lua lexer
2024-05-03lua: themes: add `STYLE_CODE`Thim Cederlund1-1/+2
used by the following lexers: gemini, markdown and txt2tags to highlight sections of code.
2024-04-30lua: complete-filename: use biggest possible prefixFlorian Fischer1-1/+1
This allows for example to complete file names in markdown images. E.g.: ![](pic<C-x><C-f> will complete the file name. Previously it would have detected the '[' as prefix.
2024-04-30lua: uncomment list of lexer specific styles in default themeRandy Palamar1-2/+0
2024-04-29Emit an event (ui_draw) immediately before drawing the screenRudy Dellomas III1-0/+2
This allows better control over styling, as well as potential for entirely new UI elements implemented entirely using the Lua API.
2024-04-29lua: small filetype/style setting cleanupRandy Palamar2-20/+5
Filetype extension mapping already needs to match regular expressions so we might as well us it to simplify things. set_syntax doesn't need to handle pseudo scintilla style definitions. I couldn't even find any examples of table style definitions anywhere let alone references to other definitions as $(style.myvarname) (hint: variables in lua already handle this).
2024-04-25lua: Report viewport lines and bytes in one tableRudy Dellomas III1-1/+1
This will break all plugins which currently use Win.viewport.
2024-04-07plugins/filetype: fix javascript/typescript detectiongit-bruh1-2/+2
2024-03-27lua: update default themesRandy Palamar2-1/+122
This also involves modifying the style definitions so that they include sub tags as well. For example command.section in latex should be mapped to COMMAND_SECTION.
2024-03-27lua: cache loaded lexersFlorian Fischer1-0/+14
Caching lexers causes lexer tables to be constructed once and reused during each HIGHLIGHT event. Additionally it allows to modify the lexer used for syntax highlighting from Lua code. This is used for example for the syntax aware spellchecking performed by the vis-spellcheck plugin.