aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
Commit message (Collapse)AuthorAge
* syntax.c: Update color names. (#5733)Justin M. Keyes2016-12-08
| | | Closes #5178
* vim-patch:7.4.1691Shougo Matsushita2016-11-24
| | | | | | | | | Problem: When switching to a new buffer and an autocommand applies syntax highlighting an ml_get error may occur. Solution: Check "syn_buf" against the buffer in the window. (Alexander von Buddenbrock, closes vim/vim#676) https://github.com/vim/vim/commit/b681be175b6991cdc2b8ddd49b0e97e3fe2b201e
* 'inccommand': rename 'incsubstitute'Justin M. Keyes2016-11-08
| | | | | | | | | 'inccommand' allows us to expand the feature to other commands, such as: :cdo :cfdo :global Also rename "IncSubstitute" highlight group to "Substitute".
* 'inccommand': reworkJustin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | - Eliminate/isolate static/global variables - Remove special-case parameter from buflist_new() - Remove special-case ECMD_RESERVED_BUFNR - To determine when u_undo_and_forget() should be done, check b_changedtick instead of a heuristic. - use mb_string2cells() instead of strlen() to measure the :sub patterns - call ml_close() before buf_clear_file(). Avoids leaks caught by ASan. Original patch by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0)
* Incsubsitution featureKillTheMule2016-10-30
| | | | | | | | | | | | | | | | | Originally implemented by * Clement0 * DesbyP * aym7 * Adrey06 * Robinhola in #4811. Major reworkings and bug fixes by * bfredl Most tests suggested by ZyX-l, suggestions for improvements by oni-link.
* version: has("nvim-1.2.3")Justin M. Keyes2016-10-25
| | | | Helped-by: Daniel Hahler <git@thequod.de>
* vim-patch:7.4.1547 #5326Stéphane Campinas2016-09-16
| | | | | | | | Problem: Getting a cterm highlight attribute that is not set results in the string "-1". Solution: Return an empty string. (Taro Muraoka) https://github.com/vim/vim/commit/385111bd86e0b38667879c3e89506ca1ae98e1df
* syntax.c: Support bg/fg special color-names. #5319Kerem Cakirer2016-09-16
| | | | Refresh colors if changing Normal group
* refactor: eliminate misc2.cJustin M. Keyes2016-09-13
| | | | | | | | | | move `call_shell` to misc1.c Move some fns to state.c Move some fns to option.c Move some fns to memline.c Move `vim_chdir*` fns to file_search.c Move some fns to new module, bytes.c Move some fns to fileio.c
* highlight: Added QuickFixLine highlight groupTommy Allen2016-08-17
| | | | | | | | | | | | - Links to Search by default screen.c: Combine CursorLine with QuickFixLine - HLF_QFL takes priority over HLF_CUL docs: Updated to mention QuickFixLine runtime: Added QuickFixLine to nvimHLGroup tests: QuickFixLine highlight
* mouse.c: Adjust clicked column if chars are concealed (#5087)Tommy Allen2016-07-28
| | | | | syntax.c: Added syn_get_concealed_id() tests: Added tests for mouse clicks on concealed text.
* 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