]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/php-template.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / php-template.js
1 /*! `php-template` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: PHP Template
7 Requires: xml.js, php.js
8 Author: Josh Goebel <hello@joshgoebel.com>
9 Website: https://www.php.net
10 Category: common
11 */
12
13 function phpTemplate(hljs) {
14 return {
15 name: "PHP template",
16 subLanguage: 'xml',
17 contains: [
18 {
19 begin: /<\?(php|=)?/,
20 end: /\?>/,
21 subLanguage: 'php',
22 contains: [
23 // We don't want the php closing tag ?> to close the PHP block when
24 // inside any of the following blocks:
25 {
26 begin: '/\\*',
27 end: '\\*/',
28 skip: true
29 },
30 {
31 begin: 'b"',
32 end: '"',
33 skip: true
34 },
35 {
36 begin: 'b\'',
37 end: '\'',
38 skip: true
39 },
40 hljs.inherit(hljs.APOS_STRING_MODE, {
41 illegal: null,
42 className: null,
43 contains: null,
44 skip: true
45 }),
46 hljs.inherit(hljs.QUOTE_STRING_MODE, {
47 illegal: null,
48 className: null,
49 contains: null,
50 skip: true
51 })
52 ]
53 }
54 ]
55 };
56 }
57
58 return phpTemplate;
59
60 })();
61 ;
62 export default hljsGrammar;