-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
81 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
" Maintainer: B.Kowarsch <[email protected]> | ||
" Last Change: 2016 August 22 | ||
|
||
" ---------------------------------------------------- | ||
" THIS FILE IS LICENSED UNDER THE VIM LICENSE | ||
" see https://github.com/vim/vim/blob/master/LICENSE | ||
" ---------------------------------------------------- | ||
|
||
" Remarks: | ||
" Vim Syntax files are available for the following Modula-2 dialects: | ||
" * for the PIM dialect : m2pim.vim | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
" Maintainer: B.Kowarsch <[email protected]> | ||
" Last Change: 2016 August 22 | ||
|
||
" ---------------------------------------------------- | ||
" THIS FILE IS LICENSED UNDER THE VIM LICENSE | ||
" see https://github.com/vim/vim/blob/master/LICENSE | ||
" ---------------------------------------------------- | ||
|
||
" Remarks: | ||
" Vim Syntax files are available for the following Modula-2 dialects: | ||
" * for the PIM dialect : m2pim.vim (this file) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
" Maintainer: B.Kowarsch <[email protected]> | ||
" Last Change: 2020 June 18 (moved repository from bb to github) | ||
|
||
" ---------------------------------------------------- | ||
" THIS FILE IS LICENSED UNDER THE VIM LICENSE | ||
" see https://github.com/vim/vim/blob/master/LICENSE | ||
" ---------------------------------------------------- | ||
|
||
" Remarks: | ||
" Vim Syntax files are available for the following Modula-2 dialects: | ||
" * for the PIM dialect : m2pim.vim | ||
|
@@ -57,15 +62,15 @@ syn case match | |
" Note: MODULE, PROCEDURE and END are defined separately further below | ||
syn keyword m2Resword ALIAS AND ARGLIST ARRAY BEGIN CASE CONST COPY DEFINITION | ||
syn keyword m2Resword DIV DO ELSE ELSIF EXIT FOR FROM GENLIB IF IMPLEMENTATION | ||
syn keyword m2Resword IMPORT IN LOOP MOD NEW NOP NOT OCTETSEQ OF OPAQUE OR | ||
syn keyword POINTER READ RECORD RELEASE REPEAT RETAIN RETURN SET THEN TO TYPE | ||
syn keyword m2Resword IMPORT IN LOOP MOD NEW NOT OF OPAQUE OR POINTER READ | ||
syn keyword m2Resword RECORD RELEASE REPEAT RETAIN RETURN SET THEN TO TYPE | ||
syn keyword m2Resword UNTIL VAR WHILE WRITE YIELD | ||
|
||
|
||
" ----------------------------------------------------------------------------- | ||
" Schroedinger's Tokens | ||
" ----------------------------------------------------------------------------- | ||
syn keyword m2SchroedToken COROUTINE LITERAL | ||
syn keyword m2SchroedToken CAPACITY COROUTINE LITERAL | ||
|
||
|
||
" ----------------------------------------------------------------------------- | ||
|
@@ -85,29 +90,26 @@ syn keyword m2TypeIdent CARDINAL LONGCARD INTEGER LONGINT REAL LONGREAL | |
" Builtin Procedure and Function Identifiers | ||
" ----------------------------------------------------------------------------- | ||
syn keyword m2ProcIdent APPEND INSERT REMOVE SORT SORTNEW | ||
syn keyword m2FuncIdent CHR UCHR ORD COLLATION ODD ABS SGN MIN MAX LOG2 POW2 | ||
syn keyword m2FuncIdent ENTIER PRED SUCC PTR CAPACITY COUNT LENGTH FIRST LAST | ||
syn keyword m2FuncIdent PREV NEXT | ||
syn keyword m2FuncIdent CHR ORD ODD ABS SGN MIN MAX LOG2 POW2 ENTIER | ||
syn keyword m2FuncIdent PRED SUCC PTR COUNT LENGTH | ||
|
||
|
||
" ----------------------------------------------------------------------------- | ||
" Builtin Macro Identifiers | ||
" ----------------------------------------------------------------------------- | ||
syn keyword m2MacroIdent TMIN TMAX TSIZE TLIMIT | ||
syn keyword m2MacroIdent NOP TMIN TMAX TSIZE TLIMIT | ||
|
||
|
||
" ----------------------------------------------------------------------------- | ||
" Builtin Primitives | ||
" ----------------------------------------------------------------------------- | ||
syn keyword m2PrimitiveIdent _ATVALUE _KVALUE _ATSTORE _KVSTORE _ATINSERT | ||
syn keyword m2PrimitiveIdent _ATREMOVE _ALLOC _DEALLOC _STDIN _STDOUT | ||
syn keyword m2PrimitiveIdent _NEG _SUBSET _SXF _VAL | ||
syn keyword m2PrimitiveIdent SXF VAL STORE VALUE SEEK SUBSET | ||
|
||
|
||
" ----------------------------------------------------------------------------- | ||
" Unsafe Facilities via Pseudo-Module UNSAFE | ||
" ----------------------------------------------------------------------------- | ||
syn keyword m2UnsafeIdent UNSAFE ADDRESS BYTE WORD LONGWORD | ||
syn keyword m2UnsafeIdent UNSAFE BYTE WORD LONGWORD OCTETSEQ | ||
syn keyword m2UnsafeIdent ADD SUB INC DEC SETBIT HALT | ||
syn keyword m2UnsafeIdent ADR CAST BIT SHL SHR BWNOT BWAND BWOR | ||
|
||
|
@@ -299,8 +301,8 @@ syn keyword m2ReswordEnd contained END | |
" ----------------------------------------------------------------------------- | ||
" !!! this section must be last !!! | ||
|
||
" any '`' '~' '$' '%' | ||
syn match m2IllegalChar "[`~$%]" | ||
" any '`' '~' '@' '$' '%' | ||
syn match m2IllegalChar "[`~@$%]" | ||
|
||
" any solitary sequence of '_' | ||
syn match m2IllegalChar "\<_\+\>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters