Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge lexer support for ANSI-standard MUMPS #2089

Open
wants to merge 259 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 245 commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
973c4d3
Create and pass tests for string literal contains
saint-erk Jul 8, 2021
9811b1d
Use a '] check for null to test ompound operators and string-follows …
saint-erk Jul 8, 2021
e9be1fb
Add tests for boolean operators
saint-erk Jul 8, 2021
2c3da54
Fix nor test, pass all boolean operator tests
saint-erk Jul 10, 2021
29cafbc
Merge branch 'pygments:master' into ansi-mumps
saint-erk Jul 10, 2021
26692b5
Make and pass pattern tests
saint-erk Jul 22, 2021
d2e47e8
Add more complex pattern elements
saint-erk Jul 25, 2021
9e5915b
Add pattern indirection
saint-erk Jul 25, 2021
9064ef4
Add BREAK command
saint-erk Jul 25, 2021
31dc8bc
Refactor out command spacing
saint-erk Jul 25, 2021
cd42bf1
Add tests for CLOSE
saint-erk Jul 26, 2021
2570bdc
Add indirection test to CLOSE
saint-erk Jul 26, 2021
87f6a7d
Correct variable name in multipe CLOSE arguments test
saint-erk Jul 26, 2021
ce2d9ad
Fix missing end paren for CLOSE test
saint-erk Jul 26, 2021
6d3a7c6
Add CLOSE command and param support
saint-erk Jul 26, 2021
4aae544
Initial tests for DO
saint-erk Jul 26, 2021
82ae232
Add multiple args and postconditional to arguments for DO
saint-erk Jul 26, 2021
70ea1fc
Add indirection test for DO
saint-erk Jul 26, 2021
561a752
Add tests for parameters to tags
saint-erk Sep 6, 2021
b1a3f47
Tweaks for actuallist support with lookahead groups
saint-erk Sep 18, 2021
ab4f112
Break down tag and routine in references, and add basic entryref tests
saint-erk Sep 19, 2021
1e3d6b0
Add indirection for entryref components, subscripts for local variables
saint-erk Sep 20, 2021
1340380
Add externref, refactor doargument
saint-erk Sep 21, 2021
f67f7db
Add 'else'
saint-erk Sep 21, 2021
22edeb1
Add for tests
saint-erk Sep 21, 2021
3608bb1
Add code to support FOR
saint-erk Sep 21, 2021
4c2de0d
Add goto tests
saint-erk Sep 21, 2021
b1990e7
Fix typo in goto indirect test
saint-erk Sep 21, 2021
a521341
Pass goto tests
saint-erk Sep 21, 2021
f6cdf83
Add hang tests
saint-erk Sep 21, 2021
e771322
Pass hang tests
saint-erk Sep 21, 2021
ec09873
Correction: those were tests for Halt (no arguments), not Hang (with …
saint-erk Sep 21, 2021
6e198a4
Add hang tests
saint-erk Sep 21, 2021
8eca033
Correct hang test
saint-erk Sep 21, 2021
3e2816e
Pass hang tests
saint-erk Sep 21, 2021
feb3db3
Add IF tests
saint-erk Sep 22, 2021
77b9891
Fix IF test, pass IF tests
saint-erk Sep 22, 2021
4f2e8cc
Add JOB tests
saint-erk Sep 22, 2021
0b348a2
Fix missing elements in JOB test
saint-erk Sep 25, 2021
508fb38
Another fix for JOB tests
saint-erk Sep 25, 2021
103c05c
One more test correction for JOB
saint-erk Sep 25, 2021
9b2661b
Pass JOB tests
saint-erk Sep 25, 2021
30cb4aa
Add and pass simple KILL tests
saint-erk Sep 25, 2021
319dc93
Add KILL [all] test
saint-erk Sep 25, 2021
e7c78c1
Add tests for KILL: exclusive list and indirection
saint-erk Sep 26, 2021
3cb99fb
Add indirected variable list to the exclusive kill list
saint-erk Sep 26, 2021
db41455
Pass KILL tests
saint-erk Sep 26, 2021
c1daeaa
Add LOCK tests
saint-erk Sep 27, 2021
856a035
Add postconditional in LOCK tests
saint-erk Sep 27, 2021
a50bc2b
Fix type in LOCK test
saint-erk Sep 27, 2021
28ae652
Fix wrong time issue in testLockList test
saint-erk Sep 29, 2021
8eca6ce
Pass LOCK tests
saint-erk Sep 29, 2021
292e540
Add MERGE tests
saint-erk Sep 29, 2021
b63bc18
Redesign subscript support to eliminate use of look-ahead
saint-erk Sep 29, 2021
d94b701
Apply close_paren and l_nref instead of nrefgroup
saint-erk Sep 29, 2021
100fffb
Add gvn and partial support for MERGE tests
saint-erk Sep 29, 2021
b61d648
Add name indirection; still partial MERGE support
saint-erk Sep 29, 2021
c363c35
Pass MERGE tests
saint-erk Oct 1, 2021
c234480
Add NEW tests
saint-erk Oct 1, 2021
9864e28
Pass NEW tests
saint-erk Oct 1, 2021
a2935e0
Use words() or regex word boundary checks for commands
saint-erk Oct 1, 2021
a9f3476
Fix newline in OPEN test
saint-erk Oct 8, 2021
1cabaa9
Pass initial OPEN test
saint-erk Oct 8, 2021
409bdec
Add list and variation tests for OPEN
saint-erk Oct 8, 2021
bbf7c03
Pass OPEN tests
saint-erk Oct 8, 2021
b8cdbb6
Add naked reference test and support in rgvn
saint-erk Oct 9, 2021
a09b726
Add first ssvn test
saint-erk Oct 9, 2021
6e91409
Pass first ssvn test
saint-erk Oct 9, 2021
779cd9c
Add ^ subscript test
saint-erk Oct 11, 2021
0873231
Pass abbreviated ^ test
saint-erk Oct 12, 2021
6d67898
Add tests for the rest of SSVN
saint-erk Oct 12, 2021
0cbbf71
Correct abbreviated ^ test expected values
saint-erk Oct 12, 2021
1a6dd9c
Pass remaining ssvn tests
saint-erk Oct 12, 2021
8cdd13d
Add gvn tests in QUIT expressions
saint-erk Oct 13, 2021
aaf683a
Pass gvn tests
saint-erk Oct 13, 2021
59542c1
Add environment tests for DO and labelref
saint-erk Oct 14, 2021
3423c81
Make entryref sufficient for all lineref, including environment support
saint-erk Oct 17, 2021
6518e63
Standardize on camelCase instead of under_score test names
saint-erk Oct 17, 2021
4e7094b
Reclassify as a Name.Variable.Magic
saint-erk Oct 17, 2021
d1aff79
Add tests for decimal and exponent forms of numlit
saint-erk Oct 18, 2021
d50f668
Fix test for dedecimal without padding zero
saint-erk Oct 18, 2021
f0ba739
Add text newline for numlit tests
saint-erk Oct 18, 2021
3e8ee21
Fix numlit tests... again
saint-erk Oct 18, 2021
a72895f
Yet another test fix for the numlits
saint-erk Oct 18, 2021
a58aa75
Change one test to use an integer with exponent
saint-erk Oct 18, 2021
afbb520
Pass numlit tests
saint-erk Oct 18, 2021
25382f5
Add a few TODO placeholders
saint-erk Oct 18, 2021
12b7eaa
Add READ test
saint-erk Oct 25, 2021
b950f63
Pass READ test
saint-erk Oct 25, 2021
eea0777
Add postconditional and indirection tests to READ
saint-erk Oct 26, 2021
79788c8
Fix some spacing and add the ' operator to unaryop to pass new READ test
saint-erk Oct 26, 2021
20b4c62
Add timeout and readcount tests to READ
saint-erk Oct 27, 2021
6932c12
Pass timeout and readcount tests for READ
saint-erk Oct 27, 2021
9eebf29
Add character test to READ
saint-erk Oct 27, 2021
419f53f
Fix typo in READ character test, and pass that test
saint-erk Oct 28, 2021
5659d5e
Add first SET test
saint-erk Oct 28, 2021
cfda445
Pass first SET test
saint-erk Oct 28, 2021
276c900
Add test with a list of SET arguments
saint-erk Oct 29, 2021
7cbc016
Pass SET arugment list test
saint-erk Oct 29, 2021
8882718
Add SET group test
saint-erk Oct 31, 2021
cac5af5
Pass SET group test
saint-erk Oct 31, 2021
3e57487
Create and pass test for indirection in SET arguments
saint-erk Nov 2, 2021
443a654
Add and pass tests for SET with
Nov 9, 2021
ca3a774
Add and pass setextract tests
saint-erk Nov 14, 2021
1d35f45
Add and pass setev tests for SET
saint-erk Nov 14, 2021
dbae9d9
Add leftrestricted tests for SET
saint-erk Nov 14, 2021
1b2870a
Fix tests for leftrestricted
saint-erk Nov 14, 2021
a5af30b
Fix tests for abbreviation
saint-erk Nov 14, 2021
e2721b6
Add leftrestricted support for SET
saint-erk Nov 14, 2021
ef3c1f8
Add support to pass the test
saint-erk Nov 14, 2021
43a101e
Add TCOMMIT test
saint-erk Nov 14, 2021
eb8f533
Correct TCOMMIT test to use Operator on postcond for now
saint-erk Nov 14, 2021
47be29e
Pass TCOMMIT test
saint-erk Nov 14, 2021
f5dfff6
Add TRESTART test
saint-erk Nov 14, 2021
568af2e
Pass TRESTART test
saint-erk Nov 14, 2021
69c4ded
Add TROllback test
saint-erk Nov 14, 2021
a08fa32
Pass TROllback test
saint-erk Nov 14, 2021
9a73e17
Add TSTART tests
saint-erk Nov 16, 2021
a7eb464
Make TSTART test consistent about keyword usage
saint-erk Nov 16, 2021
f847f1f
Pass TSTART tests
saint-erk Nov 16, 2021
aeae970
Add first USE test
saint-erk Nov 21, 2021
7fd7b13
Pass basic USE test
saint-erk Nov 21, 2021
6a3a24d
Add postcondition and indirection test for USE
saint-erk Nov 21, 2021
425acf8
Add postconditional support to USE
saint-erk Nov 21, 2021
6bf6fdd
Add USE test with deviceparameters and mnemonic
saint-erk Nov 22, 2021
b2eec9d
Pass parameter and mnemonic test for USE
saint-erk Nov 22, 2021
e192b20
Add USE test with mnemonics only
saint-erk Nov 22, 2021
220d296
Refactor colon_sep from OPEN to build a similiar structure in USE, pa…
saint-erk Nov 23, 2021
434e7ac
Use the colon_sep structure to replace several opt_* elements
saint-erk Nov 23, 2021
46d65a7
Reclassify the colon in a postconditional as Punctuation, which is bo…
saint-erk Nov 24, 2021
99c77ab
Add group test for mnemonicspec
saint-erk Nov 24, 2021
5e2eb57
Pass test for group in mnemonicspec
saint-erk Nov 24, 2021
957992c
Merge branch 'pygments:master' into ansi-mumps
saint-erk Nov 24, 2021
ba4aee8
Add TODOs and update copyright years
saint-erk Nov 24, 2021
f7568a0
Add VIEW tests
saint-erk Nov 24, 2021
8930d33
Correct VIEW tests
saint-erk Nov 24, 2021
b7106a8
Pass VIEW tests
saint-erk Nov 24, 2021
e222642
Add WRITE tests
saint-erk Nov 24, 2021
ce8cd04
Fix expected value in *intexpr test for WRITE
saint-erk Nov 24, 2021
5dae61a
Pass WRITE tests
saint-erk Nov 24, 2021
337fb00
Add XECUTE test
saint-erk Nov 24, 2021
85631b6
Pass XECUTE test
saint-erk Nov 24, 2021
618a8cd
Remove TODO for XECUTE
saint-erk Nov 24, 2021
7886fb9
Correct spelling in Xecute test
saint-erk Nov 27, 2021
acd9d63
Add local extfunc test
saint-erk Nov 27, 2021
8746b50
Pass local extfunc test
saint-erk Nov 27, 2021
0d207ff
Add extfunc with routine test
saint-erk Nov 27, 2021
e7fbe48
Pass exfunc with routine test
saint-erk Nov 27, 2021
bd168bd
Add environment test to exfunc, already passing
saint-erk Nov 27, 2021
d0d2a0d
Update externref tests: separate ampersand as a punctuation, relabel …
saint-erk Nov 27, 2021
d609618
Update externref to pass tests; add _func variations for function nam…
saint-erk Nov 27, 2021
037d63e
Rename testExtFunc* -> testExfunc to make the standard's section
saint-erk Nov 27, 2021
a22b0a4
Tests: separate 2077 as punctuation for exfunc, add exfunc with exter…
saint-erk Nov 27, 2021
e24772c
Pass updated exfunc tests
saint-erk Nov 27, 2021
b7139ba
Rename vpipe to vert_bar, since future standard version call it VB
saint-erk Nov 27, 2021
145ad02
Add exvar test
saint-erk Nov 27, 2021
6802f19
Pass exvar test
saint-erk Nov 27, 2021
5ff703a
Update todos in header
saint-erk Nov 27, 2021
f774cee
Consolidate exfunc and exvar
saint-erk Nov 28, 2021
c0842be
Add tests for SVNs through
saint-erk Nov 28, 2021
95a3539
Create 'words' list for svns with tests
saint-erk Nov 28, 2021
80c8c91
Add tests for SVNs Horolog through Key
saint-erk Nov 28, 2021
278efff
Pass SVN tests thus far
saint-erk Nov 28, 2021
6e1f458
Add remaining SVN tests
saint-erk Nov 28, 2021
fbe2028
Replace 'testSVN' with 'testSvn' for better readability
saint-erk Nov 28, 2021
13e6292
Correct missing _ operator in some SVN tests
saint-erk Nov 28, 2021
42f6d2e
Add remaining SVNs, remove TODO and Question
saint-erk Nov 28, 2021
b35b9b8
Add tests for and
saint-erk Nov 28, 2021
22690f6
Pass tests
saint-erk Nov 30, 2021
8212b40
amend! Pass $ASCII tests
saint-erk Nov 30, 2021
f08506f
Add CHAR tests, establish that builtin functions aren't .Magic
saint-erk Nov 30, 2021
b310329
Pass CHAR tests - it's not magic
saint-erk Nov 30, 2021
58be12d
Add DATA tests
saint-erk Nov 30, 2021
8cdb7f3
Pass DATA tests; update SVN RE to not match if a '(' follows
saint-erk Nov 30, 2021
42a0264
Add assertTokenList helper method
saint-erk Nov 30, 2021
1411f5a
Add EXTRACT and FIND tests
saint-erk Nov 30, 2021
2bd5ef4
Pass EXTRACT and FIND tests
saint-erk Nov 30, 2021
12eb5ee
Add and pass FNumber tests
saint-erk Dec 1, 2021
af604fe
Add tests for GET and JUSTIFY functions
saint-erk Dec 1, 2021
7533984
Pass GET and JUSTIFY function tests
saint-erk Dec 1, 2021
37f5499
Separate existing functions into dedicated sections with specific syntax
saint-erk Dec 2, 2021
5d49810
Add LENGTH tests
saint-erk Dec 2, 2021
dc4678e
Pass LENGTH tests
saint-erk Dec 2, 2021
2a1821e
Add stub headers for the remaining functions
saint-erk Dec 3, 2021
270dbd4
Extract command syntax into their own sections
saint-erk Dec 3, 2021
d4a26a9
Add NAME function tests
saint-erk Dec 3, 2021
281cc5d
Pass NAME function tests
saint-erk Dec 3, 2021
4ac8680
Add ORDER tests
saint-erk Dec 3, 2021
01996e2
Pass the ORDER tests
saint-erk Dec 3, 2021
3a7fcb5
Add PIECE function tests
saint-erk Dec 7, 2021
48ecb87
Pass PIECE tests
saint-erk Dec 7, 2021
29d6173
Add QLength function test
saint-erk Dec 8, 2021
db6a28d
Pass QLength function test
saint-erk Dec 8, 2021
195c1bd
Update copyright year
Feb 15, 2022
54f8dcd
Add ql function test
saint-erk Mar 11, 2022
f48eaca
Initial qsubscript tests
saint-erk Mar 11, 2022
d958357
Pass qsubscript tests
saint-erk Mar 11, 2022
070da28
Add tests for query function
saint-erk Mar 11, 2022
1604ca9
Pass query function tests
saint-erk Mar 11, 2022
f1e2d34
Add random tests
saint-erk Mar 13, 2022
7102d37
Correct strings for random function tests
saint-erk Mar 13, 2022
6eea116
Pass random function tests
saint-erk Mar 13, 2022
9d5a4ae
Add tests for reverse function
saint-erk Mar 13, 2022
0441315
Pass tests for reverse function
saint-erk Mar 13, 2022
215882b
Add select function tests
saint-erk Mar 13, 2022
b7189ba
Pass select function tests
saint-erk Mar 13, 2022
2fba740
Minor refactoring, replace double-backslash strings with raw strings
saint-erk Mar 13, 2022
9b9a4b7
Replace tabs with 8 spaces, only use list_comma in lists
saint-erk Mar 13, 2022
9754101
Refactor list state structure
saint-erk Mar 13, 2022
ee35f85
Finish replacing double-backslash escapes with raw strings
saint-erk Mar 13, 2022
7c8ef99
Reword the line parsing to not require 'bygroups'
saint-erk Mar 14, 2022
91d73b0
Add stack function tests
saint-erk Mar 14, 2022
b230b6e
Fix stack tests
saint-erk Mar 14, 2022
3293fb8
Pass stack function tests
saint-erk Mar 14, 2022
e4a68a7
Add tests for text function
saint-erk Mar 14, 2022
ecb29e2
Pass text function tests
saint-erk Mar 14, 2022
af7ea2c
Extract formallist's optionally empty parentheses group
saint-erk Mar 14, 2022
d2055ea
Add offset-only test for text function
saint-erk Mar 14, 2022
56f7801
Pass offset-only text function test, remove redundant indirection mat…
saint-erk Mar 14, 2022
dda286b
Add TRANSLATE function tests
saint-erk Mar 14, 2022
029e17b
Pass TRANSLATE function tests
saint-erk Mar 14, 2022
c031535
Add tests for VIEW function
saint-erk Mar 14, 2022
2878f20
Pass VIEW tests
saint-erk Mar 14, 2022
eadf4d8
Clean up exprtail repetitions, update header to reflect completed TOD…
saint-erk Mar 16, 2022
6a69fc5
Add level line test
saint-erk Mar 17, 2022
fd052b5
Fix levelline test
saint-erk Mar 17, 2022
a41892f
Pass levelline test
saint-erk Mar 17, 2022
285331f
Add explicit routine name test
saint-erk Mar 18, 2022
5ca09bc
Recognize a purely-label start of input as a routine header
saint-erk Mar 18, 2022
9ffdf53
Add example file for mumps
saint-erk Mar 18, 2022
bc858d6
Pass make check in mumps lexer
saint-erk Mar 27, 2022
010b470
Use pathlib in snippets and examplefiles
saint-erk Jun 26, 2022
e8acb15
Create snippets for mumps, to replace the long test file
saint-erk Jun 28, 2022
00c3f3e
Remove monolithic test_mumps file
saint-erk Jun 28, 2022
1fc0768
Merge branch 'master' into ansi-mumps
saint-erk Jun 28, 2022
18ce0b3
Fix COPYRIGHT years in mumps lexer
saint-erk Jun 28, 2022
8f4a214
Merge branch 'pygments:master' into ansi-mumps
saint-erk Jun 28, 2022
6696135
Restore conftest.py to match upstream
saint-erk Jun 28, 2022
062e564
Fix indentation of close brackets, and do some basic inlining
saint-erk Aug 28, 2022
dcd9ea8
More inlining of single-use states
saint-erk Aug 30, 2022
6766f8a
More inlining of single-use states
saint-erk Sep 4, 2022
3b2e063
Correct the Errors in the snippets
saint-erk Sep 23, 2022
0c8a546
Fix pattern test
saint-erk Oct 17, 2022
0a34178
Pass pattern test, continue line reduction
saint-erk Oct 17, 2022
98639b2
Finish fixing tests for MUMPS
saint-erk Oct 17, 2022
cc78590
Change the MumpsLexer comment block to match other lexers
temporalmaniac Nov 14, 2022
69a5c7e
Merge branch 'pygments:master' into ansi-mumps
saint-erk Oct 12, 2023
4ecdd84
Update copyright and lexer mapping
saint-erk Oct 15, 2023
8b90b93
Handle repeating forparameters
saint-erk Jan 7, 2024
99fe23e
Add mumps and objective-c guess tests for the .m file extension ambig…
saint-erk Jan 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -215,6 +215,7 @@ Other contributors, listed alphabetically, are:
* Steve Spigarelli -- XQuery lexer
* Jerome St-Louis -- eC lexer
* Camil Staps -- Clean and NuSMV lexers; Solarized style
* Avery Sterk -- MUMPS lexer
* James Strachan -- Kotlin lexer
* Tom Stuart -- Treetop lexer
* Colin Sullivan -- SuperCollider lexer
Expand Down
1 change: 1 addition & 0 deletions pygments/lexers/_mapping.py
Expand Up @@ -305,6 +305,7 @@
'MqlLexer': ('pygments.lexers.c_like', 'MQL', ('mql', 'mq4', 'mq5', 'mql4', 'mql5'), ('*.mq4', '*.mq5', '*.mqh'), ('text/x-mql',)),
'MscgenLexer': ('pygments.lexers.dsls', 'Mscgen', ('mscgen', 'msc'), ('*.msc',), ()),
'MuPADLexer': ('pygments.lexers.algebra', 'MuPAD', ('mupad',), ('*.mu',), ()),
'MumpsLexer': ('pygments.lexers.mumps', 'MUMPS', ('Mumps', 'mumps', 'M'), ('*.m', '*.mumps', '*.epc', '*.int'), ()),
'MxmlLexer': ('pygments.lexers.actionscript', 'MXML', ('mxml',), ('*.mxml',), ()),
'MySqlLexer': ('pygments.lexers.sql', 'MySQL', ('mysql',), (), ('text/x-mysql',)),
'MyghtyCssLexer': ('pygments.lexers.templates', 'CSS+Myghty', ('css+myghty',), (), ('text/css+myghty',)),
Expand Down