mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
build(site): [SITE-07] reproduce basic languages and verify upstream token cases
This commit is contained in:
1 parent
bc9cb61aaf
commit
426fee8faa
21 files changed
+4207
-6
No files matched your search
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"origin":"Microsoft monaco-editor 5a7ba61be909ae9e4889768a3453ebb0dec392e2 monaco-languages tests, MIT; see site-vendor/monaco-basic/LICENSE","fixtures":[{"source":"monaco-languages/src/abap/abap.test.ts","language":"abap","languages":["abap"],"cases":[[{"line":"* comment","tokens":[{"startIndex":0,"type":"comment.abap"}]}],[{"line":" \" comment","tokens":[{"startIndex":0,"type":""},{"startIndex":1,"type":"comment.abap"}]}],[{"line":"write hello.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":5,"type":""},{"startIndex":6,"type":"identifier.abap"},{"startIndex":11,"type":"delimiter.abap"}]}],[{"line":"IF 2 = 3.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":2,"type":""},{"startIndex":3,"type":"number.abap"},{"startIndex":4,"type":""},{"startIndex":5,"type":"key.abap"},{"startIndex":6,"type":""},{"startIndex":7,"type":"number.abap"},{"startIndex":8,"type":"delimiter.abap"}]}],[{"line":"'hello'","tokens":[{"startIndex":0,"type":"string.abap"}]}],[{"line":"|hello|","tokens":[{"startIndex":0,"type":"string.abap"}]}],[{"line":"write: hello, world.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":5,"type":"delimiter.abap"},{"startIndex":6,"type":""},{"startIndex":7,"type":"identifier.abap"},{"startIndex":12,"type":"delimiter.abap"},{"startIndex":13,"type":""},{"startIndex":14,"type":"identifier.abap"},{"startIndex":19,"type":"delimiter.abap"}]}],[{"line":"method_call( param ).","tokens":[{"startIndex":0,"type":"identifier.abap"},{"startIndex":11,"type":"delimiter.parenthesis.abap"},{"startIndex":12,"type":""},{"startIndex":13,"type":"identifier.abap"},{"startIndex":18,"type":""},{"startIndex":19,"type":"delimiter.parenthesis.abap"},{"startIndex":20,"type":"delimiter.abap"}]}],[{"line":"'he'' llo'","tokens":[{"startIndex":0,"type":"string.abap"}]}],[{"line":"|hel\\|lo|","tokens":[{"startIndex":0,"type":"string.abap"}]}],[{"line":"FIELD-SYMBOLS <foo>.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":13,"type":""},{"startIndex":14,"type":"identifier.abap"},{"startIndex":19,"type":"delimiter.abap"}]}],[{"line":"IF foo IS NOT INITIAL.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":2,"type":""},{"startIndex":3,"type":"identifier.abap"},{"startIndex":6,"type":""},{"startIndex":7,"type":"keyword.abap"},{"startIndex":9,"type":""},{"startIndex":10,"type":"keyword.abap"},{"startIndex":13,"type":""},{"startIndex":14,"type":"keyword.abap"},{"startIndex":21,"type":"delimiter.abap"}]}],[{"line":"WRITE `moo`.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":5,"type":""},{"startIndex":6,"type":"string.abap"},{"startIndex":11,"type":"delimiter.abap"}]}],[{"line":"FORM foo.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":4,"type":""},{"startIndex":5,"type":"identifier.abap"},{"startIndex":8,"type":"delimiter.abap"}]}],[{"line":"moo = CONV #( 1 ).","tokens":[{"startIndex":0,"type":"identifier.abap"},{"startIndex":3,"type":""},{"startIndex":4,"type":"key.abap"},{"startIndex":5,"type":""},{"startIndex":6,"type":"keyword.abap"},{"startIndex":10,"type":""},{"startIndex":11,"type":"key.abap"},{"startIndex":12,"type":"delimiter.parenthesis.abap"},{"startIndex":13,"type":""},{"startIndex":14,"type":"number.abap"},{"startIndex":15,"type":""},{"startIndex":16,"type":"delimiter.parenthesis.abap"},{"startIndex":17,"type":"delimiter.abap"}]}],[{"line":"WRITE foo ##pragma.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":5,"type":""},{"startIndex":6,"type":"identifier.abap"},{"startIndex":9,"type":""},{"startIndex":10,"type":"comment.abap"},{"startIndex":18,"type":"delimiter.abap"}]}],[{"line":"SELECT * FROM foo02 INTO @foo.","tokens":[{"startIndex":0,"type":"keyword.abap"},{"startIndex":6,"type":""},{"startIndex":7,"type":"key.abap"},{"startIndex":8,"type":""},{"startIndex":9,"type":"keyword.abap"},{"startIndex":13,"type":""},{"startIndex":14,"type":"identifier.abap"},{"startIndex":19,"type":""},{"startIndex":20,"type":"keyword.abap"},{"startIndex":24,"type":""},{"startIndex":25,"type":"identifier.abap"},{"startIndex":29,"type":"delimiter.abap"}]}],[{"line":"li = lines( itab ).","tokens":[{"startIndex":0,"type":"identifier.abap"},{"startIndex":2,"type":""},{"startIndex":3,"type":"key.abap"},{"startIndex":4,"type":""},{"startIndex":5,"type":"keyword.abap"},{"startIndex":10,"type":"delimiter.parenthesis.abap"},{"startIndex":11,"type":""},{"startIndex":12,"type":"identifier.abap"},{"startIndex":16,"type":""},{"startIndex":17,"type":"delimiter.parenthesis.abap"},{"startIndex":18,"type":"delimiter.abap"}]}],[{"line":"foo = 'bar' && 'baz'.","tokens":[{"startIndex":0,"type":"identifier.abap"},{"startIndex":3,"type":""},{"startIndex":4,"type":"key.abap"},{"startIndex":5,"type":""},{"startIndex":6,"type":"string.abap"},{"startIndex":11,"type":""},{"startIndex":12,"type":"key.abap"},{"startIndex":14,"type":""},{"startIndex":15,"type":"string.abap"},{"startIndex":20,"type":"delimiter.abap"}]}],[{"line":"DATA numLine truncated
|
||||
Reference in new issue
Block a user