aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
Commit message (Collapse)AuthorAge
...
* lintJames McCoy2016-07-08
|
* vim-patch:7.4.1552James McCoy2016-07-08
| | | | | | | Problem: ":colorscheme" does not use 'packpath'. Solution: Also use in "start" and "opt" directories in 'packpath'. https://github.com/vim/vim/commit/7f8989dd8a627af2185df381195351a913f3777f
* synIDattr(): return RRGGBB value for [fg|bg|sp]# #4851Rom Grk2016-06-18
| | | | | | | | | | add tests for synIDattr() with [fg|bg|sp]# add tests for synIDattr and various #RGB colors synIDattr: test for ui_rgb_attached() test: fix tests for synIDattr fg/bg/sp
* Make clint happy againJames McCoy2016-06-02
|
* vim-patch:7.4.1695James McCoy2016-06-02
| | | | | | | Problem: ":syn reset" clears the effect ":syn iskeyword". (James McCoy) Solution: Remove clearing the syntax keywords. https://github.com/vim/vim/commit/8bc189e81aa98ba4aebb03a9dc9527a210fce816
* vim-patch:7.4.1142James McCoy2016-06-02
| | | | | | | Problem: Cannot define keyword characters for a syntax file. Solution: Add the ":syn iskeyword" command. (Christian Brabandt) https://github.com/vim/vim/commit/b8060fe862f684b591f9ac679eac5b2594d6c5a0
* syntax: foo=NONE clears hi groupAdnoC2016-05-21
| | | | Closes #4767
* Merge #4633: support "special" highlight (undercurl)Justin M. Keyes2016-05-19
|\ | | | | | | | | Closes #2040 Closes #3370
| * LintingAdnoC2016-05-17
| |
| * syntax: Add support for the "special" color used for undercurlsAdnoC2016-05-17
| |
* | vim-patch: 7.4.1036Michael Ennen2016-05-17
|/ | | | | | | | Problem: Only terminals with up to 256 colors work properly. Solution: Use the 256 color behavior for all terminals with 256 or more colors. (Robert de Bath) https://github.com/vim/vim/commit/fa03fd6c4a9fe05274d62ddefd645cb5801d2023
* Merge pull request #4733 from AdnoC/hi-link-cleared-groupJustin M. Keyes2016-05-12
|\ | | | | | | | | | | | | Fix linking a cleared highlight group Closes #4549 Closes #2756 Closes #4236
| * syntax: Allow cleared highlight groups to be linkedAdnoC2016-05-10
| |
* | Merge pull request #4730 from jbradaric/vim-7.4.1052Justin M. Keyes2016-05-12
|\ \ | | | | | | vim-patch:7.4.1052
| * | vim-patch:7.4.1052Jurica Bradaric2016-05-10
| |/ | | | | | | | | | | | | Problem: Illegal memory access with weird syntax command. (Dominique Pelle) Solution: Check for column past end of line. https://github.com/vim/vim/commit/04bff88df6211f64731bf8f5afa088e94496db16
* / vim-patch:7.4.1054Jurica Bradaric2016-05-10
|/ | | | | | | Problem: Illegal memory access. Solution: Check for missing pattern. (Dominique Pelle) https://github.com/vim/vim/commit/2795e21eaafaeaf95a91667fd411023280d0f902
* *: Fix new linter errorsZyX2016-05-01
| | | | Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
* syntax.c: Avoid the 'background' adjustment when true color enabledwatiko2016-03-08
|
* vim-patch:7.4.1141Jurica Bradaric2016-03-03
| | | | | | | | Problem: Using searchpair() with a skip expression that uses syntax highlighting sometimes doesn't work. (David Fishburn) Solution: Reset next_match_idx. (Christian Brabandt) https://github.com/vim/vim/commit/6773a348da0dcf45df3c6c6649880655ec0d2042
* coverity/135578: Memory - illegal accessesJustin M. Keyes2016-02-16
| | | | Harmless issue, but doesn't hurt to satisfy coverity here.
* startup: Avoid VimL global. Introduce TriState enum.Justin M. Keyes2016-02-14
| | | | | | | - `syntax_on` is documented. Rather than introduce a new undocumented VimL global `g:syntax_off`, use a module-local flag. - Rename "maybe" functions to follow style guidelines (use standard module prefix)
* syntax: avoid extra global macroJustin M. Keyes2016-02-14
|
* vim-patch:7.4.828watiko2016-02-11
| | | | | | | | | | | | | | | | | | Problem: Crash when using "syn keyword x c". (Dominique Pelle) Solution: Initialize the keyword tabble. (Raymond Ko, PR 397) https://github.com/vim/vim/commit/670acbc70f371409b46b722bd9a1166e53574f42 --- see: "fix crash due to hash table not being initialized" https://github.com/vim/vim/pull/397 To reproduce: ```sh nvim -u NONE -c ow -c 'sy keyword x c' ```
* Syntax: skip over ]Marco Hinz2016-02-09
| | | | | | | | | | The ported patch for 7.4.825 removed code that is needed to walk over "]" by accident. 0: https://github.com/neovim/neovim/commit/52692d3cd3e682a4116d3cec1fcf05880f0c77a1 1: https://github.com/vim/vim/commit/1560d07045d416d0abf9731c43c28925f61515b6 Fixes #4207.
* Merge #4152 'vim-patch:7.4.{798,800,805,810,811,814,815,816,817,820,825}'.Justin M. Keyes2016-02-09
|\
| * vim-patch:7.4.825Jurica Bradaric2016-02-02
| | | | | | | | | | | | | | Problem: Invalid memory access for ":syn keyword x a[". Solution: Do not skip over the NUL. (Dominique Pelle) https://github.com/vim/vim/commit/1560d07045d416d0abf9731c43c28925f61515b6
| * vim-patch:7.4.814Jurica Bradaric2016-02-02
| | | | | | | | | | | | | | Problem: Illegal memory access with "sy match a fold". Solution: Check for empty string. (Dominique Pelle) https://github.com/vim/vim/commit/382197865ca8353a3d6681a364f95bda6aed95ec
* | vim-patch:7.4.760Jurica Bradaric2016-02-09
|/ | | | | | | Problem: Spelling mistakes are not displayed after ":syn spell". Solution: Force a redraw after ":syn spell" command. (Christian Brabandt) https://github.com/vim/vim/commit/5081d202475328a920c0bdcab990e8da84128c13
* src/*: Remove `VIM - Vi improved ...` headerMichael Reed2015-11-27
| | | | | | | | | | | | | | | | | | | Regarding the individual items in the header: `Vim - Vi improved by Bram Moolenar` Bram Moolenar is already mentioned throughout the documentation, as well as the intro screen. `:help uganda` It's already shown to all users who don't use `shortmess+=I` upon starting nvim, and is already placed prominently in help.txt, i.e., `:help` run with no arguments. `:help credits` Already mentioned near the top of help.txt. `README.md` Already mentioned in develop.txt.
* Remove unnecessary includes for errno.hRui Abreu Ferreira2015-11-25
|
* src: README.txt -> README.mdMichael Reed2015-11-23
| | | | | The former no longer exists in this repo; see the top of src/nvim/README.md.
* Remove char_u: ex_docmd:do_cmdline_cmd()Michael Reed2015-05-13
|
* vim-patch:7.4.524 #2559David Bürgin2015-05-09
| | | | | | | | | Problem: When using ":ownsyntax" spell checking is messed up. (Issue 78) Solution: Use the window-local option values. (Christian Brabandt) https://github.com/vim/vim/commit/v7-4-524 See also https://code.google.com/p/vim/issues/detail?id=78
* vim-patch:7.4.519David Bürgin2015-04-27
| | | | | | | | | Problem: Crash when using syntax highlighting. Solution: When regprog is freed and replaced, store the result. https://github.com/vim/vim/tree/v7-4-519 Helped-by: Scott Prager <splinterofchaos@gmail.com>
* Improve comments and fix ascii_* attributesFelipe Oliveira Carvalho2015-04-24
|
* Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.hFelipe Oliveira Carvalho2015-04-24
|
* Replace vim_iswhite with ascii_iswhite() defined in ascii.hFelipe Oliveira Carvalho2015-04-24
|
* memory: Add `free` wrapper and refactor project to use itThiago de Arruda2015-04-13
| | | | | | We already use wrappers for allocation, the new `xfree` function is the equivalent for deallocation and provides a way to fully replace the malloc implementation used by Neovim.
* Remove obsolete CENT macro #2397Marco Hinz2015-04-12
| | | | | | | | | | | | The CENT macro was set condionally depending on the FEAT_GUI constant that was removed a long time ago. Other small refactorings: - remove obsolete TERM= flags - sort and indent lines in array for readability - 'Conceal' and 'WildMenu' were moved from highlight_init_{dark,light}[] to highlight_init_both[] since the same values were used anyway
* Add new highlight groups TermCursor/TermCursorNCMarco Hinz2015-04-09
| | | | | | | These highlight groups replace the old mechanism of setting: - {g,b}:terminal_focused_cursor_highlight - {g,b}:terminal_unfocused_cursor_highlight
* terminal: New module that implements a terminal emulatorThiago de Arruda2015-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit integrates libvterm with Neovim and implements a terminal emulator with nvim buffers as the display mechanism. Terminal buffers can be created using any of the following methods: - Opening a file with name following the "term://[${cwd}//[${pid}:]]${cmd}" URI pattern where: - cwd is the working directory of the process - pid is the process id. This is just for use in session files where a pid would have been assigned to the saved buffer title. - cmd is the command to run - Invoking the `:terminal` ex command - Invoking the `termopen` function which returns a job id for automating the terminal window. Some extra changes were also implemented to adapt with terminal buffers. Here's an overview: - The `main` function now sets a BufReadCmd autocmd to intercept the term:// URI and spawn the terminal buffer instead of reading the file. - terminal buffers behave as if the following local buffer options were set: - `nomodifiable` - `swapfile` - `undolevels=-1` - `bufhidden=hide` - All commands that delete buffers(`:bun`, `:bd` and `:bw`) behave the same for terminal buffers, but only work when bang is passed(eg: `:bwipeout!`) - A new "terminal" mode was added. A consequence is that a new set of mapping commands were implemented with the "t" prefix(tmap, tunmap, tnoremap...) - The `edit` function(which enters insert mode) will actually enter terminal mode if the current buffer is a terminal - The `put` operator was adapted to send data to the terminal instead of modifying the buffer directly. - A window being resized will also trigger a terminal resize if the window displays the terminal.
* syntax: Fix possible invalid read in hl_combine_attrThiago de Arruda2015-03-25
|
* syntax: let first syntax item seqnr be 1 instead of 0Björn Linse2015-03-21
| | | | | in screen.c:win_line seqnr 0 represents the state: no current syntax item
* syntax.c: Prevent use after free for variable g:colors_name.oni-link2015-03-13
| | | | | | | | | | | ASan spotted a problem when using 'set background={light,dark}' with color scheme solarized. While loading the colors for color scheme 'g:colors_name', the pointer on the value for this variable can become invalid, because of an 'unlet colors_name' (part of an :highlight clear, syntax.c:6173). To prevent the use of the freed value, decouple the value from 'g:colors_name' before calling load_colors() with it.
* Remove redundant castsAnton Ovchinnikov2015-03-09
|
* Macro cleanup: USER_HIGHLIGHTMichael Reed2015-03-05
|
* refactor: Remove term modules and termcap optionsThiago de Arruda2015-02-21
| | | | | | | | | | | | | | | - Removed term.c, term.h and term_defs.h - Tests for T_* values were removed. screen.c was simplified as a consequence(the best strategy for drawing is implemented in the UI layer) - Redraw functions now call ui.c functions directly. Updates are flushed with `ui_flush()` - Removed all termcap options(they now return empty strings for compatibility) - &term/&ttybuiltin options return a constant value(nvim) - &t_Co is still available, but it mirrors t_colors directly - Remove cursor tracking from screen.c and the `screen_start` function. Now the UI is expected to maintain cursor state across any call, and reset it when resized. - Remove unused code
* Enable -Wconversion: mark.c.Eliseo Martínez2015-02-18
| | | | | | Refactoring summary: - MB_STRNICMP: Inlined. - MB_STRNCMP: Inlined.
* syntax: Refactor to store all term and gui attributes independentlyThiago de Arruda2015-02-16
| | | | | Now the attrentry_T structure will store all attributes in separate fields for cterm and rgb UIs.
* ui: Remove/adapt some old code for a big UI refactorThiago de Arruda2015-02-16
| | | | | | | | | | | | | - Remove abstract_ui global, now it is always active - Remove some terminal handling code - Remove unused functions - Remove HAVE_TGETENT/TERMINFO/TERMIOS/IOCTL #ifdefs - Remove tgetent/terminfo from version.c - Remove curses/terminfo dependencies - Only start/stop termcap when starting/exiting the program - msg_use_printf will return true if there are no attached UIs( messages will be written to stdout) - Remove `ex_winpos`(implement `:winpos` with `ex_ni`)