Skip to content

Commit daa0792

Browse files
committed
v plugin
1 parent 00d2bb7 commit daa0792

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

plugins/v/VLexer.dll

390 KB
Binary file not shown.

plugins/v/VLexer.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<NotepadPlus version="2">
2+
<Languages>
3+
<Language name="VLang" ext="v" commentLine="//" commentStart="/*" commentEnd="*/">
4+
<Keywords name="instre1">assert if else asm return sizeof go goto mut shared lock rlock type for true false continue break typeof pub in atomic or static as defer match select is none print println</Keywords>
5+
<Keywords name="instre2">i8 i16 int i64 u8 u16 u32 u64 f32 f64 string ustring char byte bool any size_t rune</Keywords>
6+
<Keywords name="type1">void voidptr charptr byteptr</Keywords>
7+
<Keywords name="type2">__global __offsetof</Keywords>
8+
<Keywords name="type3">fn array map chan struct enum interface union import module unsafe const</Keywords>
9+
<Keywords name="type4">attrtwo debuglivetest deprecated direct_array_access export inline manualfree testing trusted unsafe windows_stdcall</Keywords>
10+
<Keywords name="type5" />
11+
<Keywords name="type6" />
12+
</Language>
13+
</Languages>
14+
<LexerStyles>
15+
<LexerType name="VLang" desc="V Programming Language" ext="" excluded="no">
16+
<WordsStyle styleID="0" name="Default" fgColor="56B6C2" bgColor="FFFFFF" colorStyle="0" fontName="" fontStyle="0" fontSize="" />
17+
<WordsStyle styleID="1" name="LineComments" fgColor="5C6670" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
18+
<WordsStyle styleID="2" name="BlockComments" fgColor="5C6670" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
19+
<WordsStyle styleID="3" name="Numbers" fgColor="D19A66" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
20+
<WordsStyle styleID="4" name="Operators" fgColor="56B6C2" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
21+
<WordsStyle styleID="5" name="Strings" fgColor="99CC99" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
22+
<WordsStyle styleID="6" name="Keywords1" fgColor="B67DCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="instre1" fontSize="" />
23+
<WordsStyle styleID="7" name="Keywords2" fgColor="D9BE8B" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="instre2" fontSize="" />
24+
<WordsStyle styleID="8" name="Keywords3" fgColor="E5C07B" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="type1" fontSize="" />
25+
<WordsStyle styleID="9" name="Keywords4" fgColor="E06C75" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="type2" />
26+
<WordsStyle styleID="10" name="Keywords5" fgColor="BD66D8" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="type3" />
27+
<WordsStyle styleID="11" name="Keywords6" fgColor="56B6C2" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="type4" />
28+
<WordsStyle styleID="12" name="Keywords7" fgColor="BD66D8" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="type5" />
29+
<WordsStyle styleID="13" name="Keywords8" fgColor="E5C07B" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" keywordClass="type6" />
30+
<WordsStyle styleID="14" name="CFunctions" fgColor="59ACFF" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" />
31+
</LexerType>
32+
</LexerStyles>
33+
</NotepadPlus>

plugins/v/test_hello_world.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
fn main() {
3+
println('Hello World')
4+
}

0 commit comments

Comments
 (0)