main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
420 bytes
|
Line | |
---|
1 | 'use strict'
|
---|
2 | var refractorJson = require('./json.js')
|
---|
3 | module.exports = jsonp
|
---|
4 | jsonp.displayName = 'jsonp'
|
---|
5 | jsonp.aliases = []
|
---|
6 | function 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.