mirror of
				https://github.com/JKorf/CryptoExchange.Net
				synced 2025-10-30 18:07:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /*
 | |
| Language: Parser3
 | |
| Requires: xml.js
 | |
| Author: Oleg Volchkov <oleg@volchkov.net>
 | |
| Website: https://www.parser.ru/en/
 | |
| Category: template
 | |
| */
 | |
| 
 | |
| export default function(hljs) {
 | |
|   var CURLY_SUBCOMMENT = hljs.COMMENT(
 | |
|     '{',
 | |
|     '}',
 | |
|     {
 | |
|       contains: ['self']
 | |
|     }
 | |
|   );
 | |
|   return {
 | |
|     name: 'Parser3',
 | |
|     subLanguage: 'xml', relevance: 0,
 | |
|     contains: [
 | |
|       hljs.COMMENT('^#', '$'),
 | |
|       hljs.COMMENT(
 | |
|         '\\^rem{',
 | |
|         '}',
 | |
|         {
 | |
|           relevance: 10,
 | |
|           contains: [
 | |
|             CURLY_SUBCOMMENT
 | |
|           ]
 | |
|         }
 | |
|       ),
 | |
|       {
 | |
|         className: 'meta',
 | |
|         begin: '^@(?:BASE|USE|CLASS|OPTIONS)$',
 | |
|         relevance: 10
 | |
|       },
 | |
|       {
 | |
|         className: 'title',
 | |
|         begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$'
 | |
|       },
 | |
|       {
 | |
|         className: 'variable',
 | |
|         begin: '\\$\\{?[\\w\\-\\.\\:]+\\}?'
 | |
|       },
 | |
|       {
 | |
|         className: 'keyword',
 | |
|         begin: '\\^[\\w\\-\\.\\:]+'
 | |
|       },
 | |
|       {
 | |
|         className: 'number',
 | |
|         begin: '\\^#[0-9a-fA-F]+'
 | |
|       },
 | |
|       hljs.C_NUMBER_MODE
 | |
|     ]
 | |
|   };
 | |
| }
 |