Sha256: 87c6c23668dd3719e195a789e021eb4c5b94fdfcf62811b18cc68d4e865f058d

Contents?: true

Size: 830 Bytes

Versions: 7

Compression:

Stored size: 830 Bytes

Contents

Prism.languages.apl = {
	'comment': /(?:⍝|#[! ]).*$/m,
	'string': /'(?:[^'\r\n]|'')*'/,
	'number': /¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:\d*\.?\d+(?:e[\+¯]?\d+)?|¯|∞))?/i,
	'statement': /:[A-Z][a-z][A-Za-z]*\b/,
	'system-function': {
		pattern: /⎕[A-Z]+/i,
		alias: 'function'
	},
	'constant': /[⍬⌾#⎕⍞]/,
	'function': /[-+×÷⌈⌊∣|⍳?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
	'monadic-operator': {
		pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
		alias: 'operator'
	},
	'dyadic-operator': {
		pattern: /[.⍣⍠⍤∘⌸]/,
		alias: 'operator'
	},
	'assignment': {
		pattern: /←/,
		alias: 'keyword'
	},
	'punctuation': /[\[;\]()◇⋄]/,
	'dfn': {
		pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
		alias: 'builtin'
	}
};

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
prism-rails-1.6.0.1 vendor/assets/javascripts/prism/prism-apl.js
prism-rails-1.5.1 vendor/assets/javascripts/prism-apl.js
highlighting-0.1.4 vendor/assets/javascripts/prism-apl.js
highlighting-0.1.3 vendor/assets/javascripts/prism-apl.js
highlighting-0.1.2 vendor/assets/javascripts/prism-apl.js
highlighting-0.1.1 vendor/assets/javascripts/prism-apl.js
highlighting-0.1.0 vendor/assets/javascripts/prism-apl.js