summaryrefslogtreecommitdiff
path: root/src/syntax.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo2522022-02-161-3/+3
| | | | | Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
* patch 8.2.4307: a few more messages should not be translatedv8.2.4307Bram Moolenaar2022-02-061-5/+5
| | | | | Problem: A few more messages should not be translated. Solution: Remove _().
* patch 8.2.4303: a few messages should not be translatedv8.2.4303Dominique Pelle2022-02-051-5/+5
| | | | | Problem: A few messages should not be translated. Solution: Remove _(). (Dominique Pellé, closes #9702)
* patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar2022-01-081-2/+2
| | | | | Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
* patch 8.2.4012: error messages are spread outv8.2.4012Bram Moolenaar2022-01-051-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
* patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar2022-01-051-3/+3
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.4008: error messages are spread outv8.2.4008Bram Moolenaar2022-01-051-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3985: error messages are spread outv8.2.3985Bram Moolenaar2022-01-021-27/+24
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-6/+6
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3631: "syntax enable" does not work properly in Vim9 contextv8.2.3631Bram Moolenaar2021-11-201-2/+2
| | | | | Problem: "syntax enable" does not work properly in Vim9 context. Solution: Also handle Vim9 context. (closes #9161)
* patch 8.2.3297: cannot use all commands inside a {} blockv8.2.3297Bram Moolenaar2021-08-051-7/+7
| | | | | | Problem: Cannot use all commands inside a {} block after :command and :autocmd. Solution: Do consider \n to separate commands. (closes #8620)
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-1/+1
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.2761: using "syn include" does not work properlyv8.2.2761Bram Moolenaar2021-04-141-4/+9
| | | | | | Problem: Using "syn include" does not work properly. Solution: Don't add current_syn_inc_tag to topgrp. (Jaehwang Jerry Jung, closes #8104)
* 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.