source: node_modules/refractor/lang/jsonp.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 420 bytes
RevLine 
[d24f17c]1'use strict'
2var refractorJson = require('./json.js')
3module.exports = jsonp
4jsonp.displayName = 'jsonp'
5jsonp.aliases = []
6function jsonp(Prism) {
7 Prism.register(refractorJson)
8 Prism.languages.jsonp = Prism.languages.extend('json', {
9 punctuation: /[{}[\]();,.]/
10 })
11 Prism.languages.insertBefore('jsonp', 'punctuation', {
12 function: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/
13 })
14}
Note: See TracBrowser for help on using the repository browser.