Mercurial > vim
annotate src/GvimExt/gvimext_ming.rc @ 33232:d72f150af9f1
runtime(scala): Fix Scala highlighting string literal as type param (#13070)
Commit: https://github.com/vim/vim/commit/066103307534f81de08a092aac3a15e864a5a25f
Author: Emil Ejbyfeldt <eejbyfeldt@liveintent.com>
Date: Sun Sep 10 18:16:51 2023 +0200
runtime(scala): Fix Scala highlighting string literal as type param (https://github.com/vim/vim/issues/13070)
Since https://docs.scala-lang.org/sips/42.type.html which is implemented
in Scala 2.13 and in Scala 3 it possible to use string literals as
singleton types. So code like
```
someFunc["abc"]
```
is valid. Currently this code is not hightlighted correctly and worse if
there is an unclosed `(` in the string it breaks the formating in the
rest of the file.
I also submitted this patch to the mentioned project for this runtime
file: https://github.com/derekwyatt/vim-scala/pull/173 But there are no
commits there over the last 2 years and no response in the week since I
created it. Also the last change to the Scala syntax file:
https://github.com/vim/vim/pull/9594 is yet to be backported to that
repo. Therefore I am opening this PR as well to get some feedback on how
to proceed to get this fixed.
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Sep 2023 18:30:03 +0200 |
parents | 4e2284e71352 |
children |
rev | line source |
---|---|
10 | 1 #include <windows.h> |
2 #define xstr(x) str(x) | |
3 #define str(x) #x | |
4 VS_VERSION_INFO VERSIONINFO | |
5 FILEVERSION 1,0,0,1 | |
6 PRODUCTVERSION 1,0,0,1 | |
7 FILEFLAGSMASK 0x3fL | |
8 #ifdef _DEBUG | |
9 FILEFLAGS 0x3L | |
10 #else | |
11 FILEFLAGS 0x2L | |
12 #endif | |
13 FILEOS 0x4L | |
14 FILETYPE VFT_DLL | |
15 FILESUBTYPE 0x0L | |
16 { | |
17 BLOCK "StringFileInfo" | |
18 { | |
19 BLOCK "040904b0" | |
20 { | |
21 VALUE "Comments", "Developed using COM architecture!\0" | |
22 VALUE "CompanyName", "Tianmiao Hu's Developer Studio\0" | |
23 VALUE "FileDescription", "A small project for the context menu of gvim!\0" | |
24 VALUE "FileVersion", "1, 0, 0, 1\0" | |
25 VALUE "InternalName", "gvim right-click menu extension\0" | |
26 VALUE "LegalCopyright", "Copyright © 1999 Tianmiao Hu\0" | |
27 VALUE "LegalTrademarks", "Tianmiao Hu's Gvim Context Menu Extension\0" | |
28 VALUE "OriginalFilename", "gvimext.dll\0" | |
29 VALUE "PrivateBuild", "\0" | |
30 VALUE "ProductName", "Tianmiao Hu's gvimext context menu extension\0" | |
31 VALUE "ProductVersion", "1, 0, 0, 1\0" | |
32 | |
33 #if defined(__GNUC__) | |
34 VALUE "SpecialBuild", "Build With " "MingW " xstr(__GNUC__) "." xstr(__GNUC_MINOR__) "." xstr(__GNUC_PATCHLEVEL__) " on " __DATE__ " " __TIME__ "\0" | |
35 #else | |
36 VALUE "SpecialBuild", "Unknown compiler\0" | |
37 | |
38 #endif | |
39 } | |
40 } | |
41 BLOCK "VarFileInfo" | |
42 { | |
43 VALUE "Translation", 0x409, 1200 | |
44 } | |
45 } |