mirror of
				https://github.com/JKorf/CryptoExchange.Net
				synced 2025-11-04 04:17:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/*
 | 
						|
Language: Diff
 | 
						|
Description: Unified and context diff
 | 
						|
Author: Vasily Polovnyov <vast@whiteants.net>
 | 
						|
Website: https://www.gnu.org/software/diffutils/
 | 
						|
Category: common
 | 
						|
*/
 | 
						|
 | 
						|
export default function(hljs) {
 | 
						|
  return {
 | 
						|
    name: 'Diff',
 | 
						|
    aliases: ['patch'],
 | 
						|
    contains: [
 | 
						|
      {
 | 
						|
        className: 'meta',
 | 
						|
        relevance: 10,
 | 
						|
        variants: [
 | 
						|
          {begin: /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},
 | 
						|
          {begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/},
 | 
						|
          {begin: /^\-\-\- +\d+,\d+ +\-\-\-\-$/}
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      {
 | 
						|
        className: 'comment',
 | 
						|
        variants: [
 | 
						|
          {begin: /Index: /, end: /$/},
 | 
						|
          {begin: /={3,}/, end: /$/},
 | 
						|
          {begin: /^\-{3}/, end: /$/},
 | 
						|
          {begin: /^\*{3} /, end: /$/},
 | 
						|
          {begin: /^\+{3}/, end: /$/},
 | 
						|
          {begin: /^\*{15}$/ }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      {
 | 
						|
        className: 'addition',
 | 
						|
        begin: '^\\+', end: '$'
 | 
						|
      },
 | 
						|
      {
 | 
						|
        className: 'deletion',
 | 
						|
        begin: '^\\-', end: '$'
 | 
						|
      },
 | 
						|
      {
 | 
						|
        className: 'addition',
 | 
						|
        begin: '^\\!', end: '$'
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  };
 | 
						|
}
 |