Open Crystal-RainSlide opened 10 months ago
Under [LangOptions]:
LanguageName LanguageID LanguageCodePage DialogFontName DialogFontSize WelcomeFontName WelcomeFontSize TitleFontNam TitleFontSize CopyrightFontName CopyrightFontSize RightToLeft
It seems to me that everything you specified here is already present in line https://github.com/chouzz/vscode-innosetup/blob/f45cd68f8b244a2e836022d08822daaa498e5367/syntaxes/inno-setup.tmLanguage#L54
But it doesn't support multiple languages like this:
en.LanguageName=English
I suppose you can add support for this with
<dict>
<key>match</key>
<string>^\s*(?i)[a-z]{2}\.(CopyrightFontName|CopyrightFontSize|DialogFontName|DialogFontSize|LanguageCodePage|LanguageID|LanguageName|RightToLeft|TitleFontName|TitleFontSize|WelcomeFontName|WelcomeFontSize)(?=\s*=)</string>
<key>name</key>
<string>keyword.inno</string>
</dict>
Before | After |
---|---|
I am new to this & don't know best practices but will try to send a pull request anyway :-)
This line is missing some words: https://github.com/chouzz/vscode-innosetup/blob/f45cd68f8b244a2e836022d08822daaa498e5367/syntaxes/inno-setup.tmLanguage#L68
Words:
AppUserModelID
AppUserModelToastActivatorCLSID
Comment
CopyMode
ExtraDiskSpaceRequired
ExternalSize
InfoAfterFile
InfoBeforeFile
Key
LicenseFile
Hotkey
IconFilename
IconIndex
MessagesFile
Section
String
Tasks
Under
[LangOptions]
:Also, you may delete this
<dict>
, since all the[Setup]
section directives seems to be highlighted fine without it: https://github.com/chouzz/vscode-innosetup/blob/f45cd68f8b244a2e836022d08822daaa498e5367/syntaxes/inno-setup.tmLanguage#L87-L92