summaryrefslogtreecommitdiff
path: root/src/syntax.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.2289: Vim9: 'cpo' can become emptyv8.2.2289Bram Moolenaar2021-01-031-2/+2
| | | | | | Problem: Vim9: 'cpo' can become empty. Solution: Use empty_option instead of an empty string. Update quickfix buffer after restoring 'cpo'. (closes #7608)
* patch 8.2.2068: transparent syntax item uses start/end of containing regionv8.2.2068Bram Moolenaar2020-11-291-2/+0
| | | | | | | Problem: Transparent syntax item uses start/end of containing region. Solution: Do not change the startpos and endpos of a transparent region to that of its containing region. (Adrian Ghizaru, closes #7349, closes #7391)
* patch 8.2.2042: build failure with +profile but without +reltimev8.2.2042Bram Moolenaar2020-11-251-2/+2
| | | | | Problem: Build failure with +profile but without +reltime. Solution: Adjust #ifdef. (Christian Brabandt, closes #7361)
* patch 8.2.2011: "syn sync" reports a very large numberv8.2.2011Bram Moolenaar2020-11-181-14/+24
| | | | | Problem: "syn sync" reports a very large number. Solution: Use "at the first line".
* patch 8.2.1678: crash when using ":set" after ":ownsyntax"v8.2.1678Bram Moolenaar2020-09-131-0/+2
| | | | | Problem: Crash when using ":set" after ":ownsyntax". Solution: Make sure 'spelloptions' is not NULL. (closes #6950)
* patch 8.2.1171: possible crash when out of memoryv8.2.1171Bram Moolenaar2020-07-101-0/+2
| | | | | Problem: Possible crash when out of memory. Solution: Check for NULL pointer. (Dominique Pellé, closes #6432)
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-6/+8
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0928: many type casts are used for vim_strnsave()v8.2.0928Bram Moolenaar2020-06-071-2/+2
| | | | | | Problem: Many type casts are used for vim_strnsave(). Solution: Make the length argument size_t instead of int. (Ken Takata, closes #5633) Remove some type casts.
* patch 8.2.0865: syntax foldlevel is taken from the start of the linev8.2.0865Bram Moolenaar2020-05-311-7/+82
| | | | | | Problem: Syntax foldlevel is taken from the start of the line. Solution: Add ":syn foldlevel" to be able to use the minimal foldlevel in the line. (Brad King, closes #6087)
* patch 8.2.0613: Vim9: no check for space before #commentv8.2.0613Bram Moolenaar2020-04-201-19/+22
| | | | | Problem: Vim9: no check for space before #comment. Solution: Add space checks.
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-3/+3
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0523: loops are repeatedv8.2.0523Bram Moolenaar2020-04-061-3/+6
| | | | | Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
* patch 8.2.0502: Vim9: some code is not testedv8.2.0502Bram Moolenaar2020-04-021-2/+2
| | | | | Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-1/+1
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.1.2395: using old C style commentsv8.1.2395Bram Moolenaar2019-12-051-489/+487
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.1950: using NULL pointer after an out-of-memoryv8.1.1950Bram Moolenaar2019-08-311-1/+1
| | | | | Problem: Using NULL pointer after an out-of-memory. Solution: Check for NULL pointer. (Dominique Pelle, closes #4881)
* patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar2019-08-181-4/+0
| | | | | Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
* patch 8.1.1827: allocating more memory than needed for extended structsv8.1.1827Bram Moolenaar2019-08-081-1/+1
| | | | | | Problem: Allocating more memory than needed for extended structs. Solution: Use offsetof() instead of sizeof(). (Dominique Pelle, closes #4786)
* patch 8.1.1699: highlight_ga can be local instead of globalv8.1.1699Bram Moolenaar2019-07-151-11/+11
| | | | | | Problem: Highlight_ga can be local instead of global. Solution: Move highlight_ga into highlight.c. (Yegappan Lakshmanan, closes #4675)
* patch 8.1.1693: syntax coloring and highlighting is in one big filev8.1.1693Bram Moolenaar2019-07-141-3637/+0
| | | | | | Problem: Syntax coloring and highlighting is in one big file. Solution: Move the highlighting to a separate file. (Yegappan Lakshmanan, closes #4674)
* patch 8.1.1667: flags for Ex commands may clash with other symbolsv8.1.1667Bram Moolenaar2019-07-121-1/+1
| | | | | Problem: Flags for Ex commands may clash with other symbols. Solution: Prepend with EX_.
* patch 8.1.1613: popup window test fails with Athena and Motifv8.1.1613Bram Moolenaar2019-07-011-0/+2
| | | | | Problem: Popup window test fails with Athena and Motif. Solution: Compute the highlight attribut when the GUI is not active.
* patch 8.1.1606: on a narrow screen ":hi" output is confusingv8.1.1606Bram Moolenaar2019-06-291-0/+4
| | | | | | Problem: On a narrow screen ":hi" output is confusing. Solution: Insert a space between highlight group name and "xxx". (Masato Nishihaga, closes #4599)
* patch 8.1.1595: MS-Windows with VIMDLL: colors wrong in consolev8.1.1595Bram Moolenaar2019-06-261-0/+4
| | | | | | Problem: MS-Windows with VIMDLL: colors wrong in console. Solution: Do not set the GUI colors when not using the GUI. (Ken Takata, closes #4588)
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-11/+11
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1397: build fails in tiny versionv8.1.1397Bram Moolenaar2019-05-251-2/+0
| | | | | Problem: Build fails in tiny version. Solution: Always define hl_combine_attr().
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-2/+2
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-2/+2
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-7/+7
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1308: the Normal highlight is not defined when compiled with GUIv8.1.1308Bram Moolenaar2019-05-091-6/+1
| | | | | Problem: The Normal highlight is not defined when compiled with GUI. Solution: Always define Normal. (Christian Brabandt, closes #4072)
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-6/+0
| | | | | | Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-1/+8
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1209: clever compiler warns for buffer being too smallv8.1.1209Bram Moolenaar2019-04-261-1/+1
| | | | | Problem: Clever compiler warns for buffer being too small. Solution: Make the buffer bigger (even though it's not really needed).
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-4/+4
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0810: too many #ifdefsv8.1.0810Bram Moolenaar2019-01-241-12/+3
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-2/+4
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-67/+67
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-56/+56
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0495: :filter only supports some commandsv8.1.0495Bram Moolenaar2018-10-251-2/+5
| | | | | | Problem: :filter only supports some commands. Solution: Add :filter support for more commands. (Marcin Szamotulski, closes #2856)
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-43/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0437: may access freed memory when syntax HL times outv8.1.0437Bram Moolenaar2018-09-281-4/+2
| | | | | Problem: May access freed memory when syntax HL times out. (Philipp Gesang) Solution: Clear b_sst_first when clearing b_sst_array.
* patch 8.1.0362: cannot get the script line number when executing a functionv8.1.0362Bram Moolenaar2018-09-101-6/+12
| | | | | | Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes #3362) Also display the line number with ":verbose set".
* patch 8.1.0198: there is no hint that syntax is disabled for 'redrawtime'v8.1.0198Bram Moolenaar2018-07-201-3/+8
| | | | | Problem: There is no hint that syntax is disabled for 'redrawtime'. Solution: Add a message.
* patch 8.1.0098: segfault when pattern with \z() is very slowv8.1.0098Bram Moolenaar2018-06-231-0/+6
| | | | | | Problem: Segfault when pattern with \z() is very slow. Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be able to test this. Fix that 'searchhl' resets called_emsg.
* patch 8.1.0006: syn_id2cterm_bg() may be undefinedv8.1.0006Bram Moolenaar2018-05-201-1/+3
| | | | | Problem: syn_id2cterm_bg() may be undefined. (Axel Bender) Solution: Adjust #ifdef.
* patch 8.0.1777: cannot cleanup before loading another colorschemev8.0.1777Bram Moolenaar2018-04-301-0/+2
| | | | | Problem: Cannot cleanup before loading another colorscheme. Solution: Add the ColorSchemePre autocommand event.
* patch 8.0.1621: using invalid default value for highlight attributev8.0.1621Bram Moolenaar2018-03-201-3/+3
| | | | | Problem: Using invalid default value for highlight attribute. Solution: Use zero instead of -1.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-8/+0
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1561: crash with rust syntax highligtingv8.0.1561Bram Moolenaar2018-03-031-1/+2
| | | | | Problem: Crash with rust syntax highligting. (Edd Barrett) Solution: Avoid going past the end of an empty line.
* patch 8.0.1544: when using 'termguicolors' SpellBad doesn't showv8.0.1544Bram Moolenaar2018-02-271-6/+37
| | | | | Problem: When using 'termguicolors' SpellBad doesn't show. Solution: When the GUI colors are not set fall back to the cterm colors.