-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from highlightjs/v11
Update v11, relevance, bug fix
- Loading branch information
Showing
11 changed files
with
214 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*! `curl` grammar compiled for Highlight.js 11.3.1 */ | ||
var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"string", | ||
begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,{className:"variable", | ||
begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}],relevance:0},a={ | ||
className:"number",variants:[{begin:e.C_NUMBER_RE}],relevance:0};return{ | ||
name:"curl",aliases:["curl"],keywords:"curl",case_insensitive:!0,contains:[{ | ||
className:"literal",begin:/(--request|-X)\s/,contains:[{className:"symbol", | ||
begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/, | ||
returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/, | ||
end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/, | ||
end:/[\s"]/,returnEnd:!0,relevance:0},n,{className:"string",begin:/\\"/, | ||
relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0 | ||
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,{match:/(\/[a-z._-]+)+/}]}}})() | ||
;export default hljsGrammar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
hljs.registerLanguage("curl",function(){"use strict";return function(e){var n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}],relevance:0},a={className:"number",variants:[{begin:e.C_NUMBER_RE}],relevance:0};return{name:"curl",aliases:["curl"],keywords:"curl",case_insensitive:!0,contains:[{className:"literal",begin:/(--request|-X)\s/,contains:[{className:"symbol",begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/,returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/,end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/,end:/[\s"]/,returnEnd:!0,relevance:0},n,{className:"string",begin:/\\"/,relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a]}}}()); | ||
/*! `curl` grammar compiled for Highlight.js 11.3.1 */ | ||
(()=>{var e=(()=>{"use strict";return e=>{const n={className:"string",begin:/"/, | ||
end:/"/,contains:[e.BACKSLASH_ESCAPE,{className:"variable",begin:/\$\(/, | ||
end:/\)/,contains:[e.BACKSLASH_ESCAPE]}],relevance:0},a={className:"number", | ||
variants:[{begin:e.C_NUMBER_RE}],relevance:0};return{name:"curl", | ||
aliases:["curl"],keywords:"curl",case_insensitive:!0,contains:[{ | ||
className:"literal",begin:/(--request|-X)\s/,contains:[{className:"symbol", | ||
begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/, | ||
returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/, | ||
end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/, | ||
end:/[\s"]/,returnEnd:!0,relevance:0},n,{className:"string",begin:/\\"/, | ||
relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0 | ||
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,{match:/(\/[a-z._-]+)+/}]}}})() | ||
;hljs.registerLanguage("curl",e)})(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.