Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prismjs-glimmer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prismjs-glimmer - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

dist/glimmer.cjs.cjs

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.1](https://github.com/NullVoxPopuli/prismjs-glimmer/compare/v1.1.0...v1.1.1) (2021-05-08)
### Bug Fixes
* **dist:** rebuild assets ([43e2f91](https://github.com/NullVoxPopuli/prismjs-glimmer/commit/43e2f91c96bdabd2e3e53e49caf65aa961f60f81))
# [1.1.0](https://github.com/NullVoxPopuli/prismjs-glimmer/compare/v1.0.0...v1.1.0) (2021-05-08)

@@ -2,0 +9,0 @@

2

dist/glimmer.esm.min.js

@@ -1,1 +0,1 @@

function i(n){function a(){return{name:"Ember.JS, Glimmer",aliases:["glimmer","hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,keywords:c,disableAutodetect:!0,contains:[n.COMMENT(/\{\{!--/,/--\}\}/),n.COMMENT(/\{\{!/,/\}\}/),n.COMMENT(/<!--/,/-->/),l,...N,E,u,T,...z]}}let s="eq neq",r="gt gte le lte",o="and or not",e="not-eq xor is-array is-object is-equal",L="let each each-in if else unless",O="log debugger",M="has-block concat fn component helper modifier get hash query-params",I="action on",P="outlet yield",C="true false undefined null",c={$pattern:/\b[\w][\w-]+\b/,keyword:`${P} ${I} ${O}`,built_in:L,function:`${e} ${M} ${s} ${r} ${o}`,literal:C},A=t.either(t.concat(/[a-zA-Z_]/,t.optional(/[A-Z0-9:_.-]*:/),/[A-Z0-9_.-]*/),/[a-z]/),m=/[A-Z][A-Za-z0-9]+/,U=t.either(m,/[a-zA-Z0-9]*\.[a-zA-Z0-9-]*/,t.concat(m,/::/,/-?/,m),/[a-z]/),y=/[a-z-][a-z\d-_]+\b/,k=/[@A-Za-z0-9._:-]+/,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},w={className:"punctuation",match:t.either(/\./,/\{\{\{?#?\/?/,/\}\}\}?/,/\(/,/\)/,/::/,/\|/,/~/)},S={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{className:"template-variable",begin:k}]},E={className:"operator",match:/\=/},u={className:{1:"punctuation",2:"params"},match:[/@/,/[\w\d-_]+/]},b={className:{1:"attribute",2:"operator"},match:[/[A-Za-z0-9-_]+/,/=/]},p={className:{1:"class",2:"punctuation",3:"property"},match:[/this/,/\./,/[^\s}]+/]},R={className:"title",match:U},B={className:"title",match:y,keywords:c},x={className:"number",match:/[\d]+((\.[\d]+))?/},T={className:"comment",begin:/\{\{!--/,contains:[{className:"comment",match:/.+/},{begin:/--\}\}/,endsParent:!0}]},g={className:"string",variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]}]},_=[w,E,u,x,S,p,b,B,g],f={keywords:c,begin:t.concat(/\(/,t.lookahead(t.concat(/\)/))),end:/\)/,contains:[..._,"self",{begin:/\)/,endsParent:!0}]};_.push(f);let N=[{className:"punctuation mustache",keywords:c,begin:t.concat(/\{\{\{?#?/),end:/\}\}\}?/,contains:[{begin:/\}\}\}?/,endsParent:!0},..._,f]}];g.variants.forEach(H=>H.contains.push(...N));let z=[{className:"tag",begin:t.concat(/<:?/,t.lookahead(t.concat(A,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[E,u,T,S,p,...N,b,g,R]},{className:"tag",begin:t.concat(/<\/:?/,t.lookahead(t.concat(A,/>/))),end:/\>/,contains:[R]}];return a()}function G(n){return d("(?=",n,")")}function Z(n){return d("(",n,")?")}function d(...n){return n.map(s=>h(s)).join("")}function $(...n){return"("+n.map(s=>h(s)).join("|")+")"}function h(n){return n?typeof n=="string"?n:n.source:null}var t={lookahead:G,either:$,optional:Z,concat:d};var Y=i;function J(n){v(n),j(n)}function v(n){n.registerLanguage("glimmer",i)}function j(n){K(n)}function K(n){let a=n.getLanguage("javascript");if(!a){console.warn("JavaScript grammar not loaded");return}a=a.rawDefinition(n);let s=a.contains.findIndex(e=>(e==null?void 0:e.begin)==="css`"),r=a.contains[s];a.contains.flatMap(e=>(e==null?void 0:e.contains)||e).filter(e=>e.subLanguage==="xml").forEach(e=>e.subLanguage="glimmer");let o=n.inherit(r,{begin:/hbs`/});o.starts.subLanguage="glimmer",a.contains.splice(s,0,o),n.registerLanguage("javascript",()=>a)}export{Y as glimmer,j as registerInjections,v as registerLanguage,J as setup};
var U=Object.defineProperty;var q=Object.prototype.hasOwnProperty;var h=Object.getOwnPropertySymbols,B=Object.prototype.propertyIsEnumerable;var f=(n,o,t)=>o in n?U(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,e=(n,o)=>{for(var t in o||(o={}))q.call(o,t)&&f(n,t,o[t]);if(h)for(var t of h(o))B.call(o,t)&&f(n,t,o[t]);return n};function R(n){let o="eq neq",t="gt gte le lte",x="and or not",A="let each each-in if else unless",y="log debugger",I="has-block concat fn component helper modifier get hash query-params",L="action on",O="outlet yield",k="true false undefined null";function i(H){return new RegExp(`\\b(?:${H.split(" ").join("|")})\\b`)}let w="(\\()",M="(\\{\\{\\{?)",b="[-+*/_~!@$%^=<>{}\\w]+",a=/[A-Za-z0-9]+/,P=l.either(a,/[a-zA-Z0-9]+\.[a-zA-Z0-9-]+/,l.concat(a,/::/,/-?/,a)),u=/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,m=new RegExp(l.either(/"[^{"]+/,/"/,/'[^{']+/,/'/,/"[^"]+"/,/'[^']+'/)),c={"parameter argument property":{pattern:/@[\w\d-_]+/}},r={punctuation:[{pattern:/[!#%&:()*+,.\/;<=>\[\\\]^`{|}~]+/},{pattern:/^=/,alias:"attr-equals"},{pattern:/\/?>/}]},S={"function-name":[{pattern:new RegExp(w+b),lookbehind:!0},{pattern:new RegExp(M+b),lookbehind:!0}]},_={builtin:i([L,O,y,A].join(" ")),keyword:i([I,k].join(" ")),operator:i([o,t,x,"as"].join(" "))},j={function:{greedy:!0,pattern:/\([\S-_\d]+\b/,inside:e(e(e({},r),S),_)}},T={"this-expression":{pattern:/this\.[\S]+/,lookbehind:!0,greedy:!0,inside:e(e({},r),{namespace:/this/,property:/[\S]+/})}},C={"member-expression":{pattern:/[\S]+\.[\S]+/,lookbehind:!0,greedy:!0,inside:e(e({},r),{constant:/[\S]+/,property:/[\S]+/})}},p=e(e(e(e(e(e(e(e(e({},j),r),T),C),c),{number:u,boolean:/\b(?:true|false)\b/}),_),S),{"attr-name":/^[^=]+=/,string:m,variable:/\b[A-Za-z0-9_-]+\b/}),s={mustache:{pattern:/\{\{\{?\/?[^}]+?\}?\}\}/,lookbehind:!0,alias:"punctuation",greedy:!0,inside:e(e({},{"sub-expression":{alias:"punctuation",pattern:/\([^)]+\)/,lookbehind:!0,greedy:!0,inside:p}}),p)}},d={string:{pattern:m,inside:s}};p.string=d.string;let E=n.languages.markup;if(!E)throw new Error("prism-markup is required");n.languages.glimmer=e(e({comment:[{pattern:/\{\{!--[\s\S]*?--\}\}/},{pattern:/\{\{![\s\S]*?\}\}/}],number:u},s),{tag:e(e({},E.tag),{inside:e(e(e(e(e({number:u},c),s),{tag:e(e({},E.tag.inside.tag),{inside:e(e({},r),{"class-name":new RegExp(P)})}),"attr-name":{pattern:/\b[^=\b]+=/,inside:e(e(e(e({},d),r),c),s)}}),r),d)})})}function z(n){return g("(?=",n,")")}function D(n){return g("(",n,")?")}function g(...n){return n.map(t=>N(t)).join("")}function G(...n){return"("+n.map(t=>N(t)).join("|")+")"}function N(n){return n?typeof n=="string"?n:n.source:null}var l={lookahead:z,either:G,optional:D,concat:g};export{R as setup};

@@ -1,1 +0,1 @@

(()=>{function u(t){function s(){return{name:"Ember.JS, Glimmer",aliases:["glimmer","hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,keywords:a,disableAutodetect:!0,contains:[t.COMMENT(/\{\{!--/,/--\}\}/),t.COMMENT(/\{\{!/,/\}\}/),t.COMMENT(/<!--/,/-->/),c,...m,i,r,R,...G]}}let e="eq neq",b="gt gte le lte",O="and or not",M="not-eq xor is-array is-object is-equal",p="let each each-in if else unless",L="log debugger",f="has-block concat fn component helper modifier get hash query-params",P="action on",I="outlet yield",C="true false undefined null",a={$pattern:/\b[\w][\w-]+\b/,keyword:`${I} ${P} ${L}`,built_in:p,function:`${M} ${f} ${e} ${b} ${O}`,literal:C},_=n.either(n.concat(/[a-zA-Z_]/,n.optional(/[A-Z0-9:_.-]*:/),/[A-Z0-9_.-]*/),/[a-z]/),o=/[A-Z][A-Za-z0-9]+/,U=n.either(o,/[a-zA-Z0-9]*\.[a-zA-Z0-9-]*/,n.concat(o,/::/,/-?/,o),/[a-z]/),y=/[a-z-][a-z\d-_]+\b/,k=/[@A-Za-z0-9._:-]+/,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},z={className:"punctuation",match:n.either(/\./,/\{\{\{?#?\/?/,/\}\}\}?/,/\(/,/\)/,/::/,/\|/,/~/)},d={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{className:"template-variable",begin:k}]},i={className:"operator",match:/\=/},r={className:{1:"punctuation",2:"params"},match:[/@/,/[\w\d-_]+/]},A={className:{1:"attribute",2:"operator"},match:[/[A-Za-z0-9-_]+/,/=/]},S={className:{1:"class",2:"punctuation",3:"property"},match:[/this/,/\./,/[^\s}]+/]},h={className:"title",match:U},B={className:"title",match:y,keywords:a},w={className:"number",match:/[\d]+((\.[\d]+))?/},R={className:"comment",begin:/\{\{!--/,contains:[{className:"comment",match:/.+/},{begin:/--\}\}/,endsParent:!0}]},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[c]},{begin:/'/,end:/'/,contains:[c]}]},E=[z,i,r,w,d,S,A,B,l],g={keywords:a,begin:n.concat(/\(/,n.lookahead(n.concat(/\)/))),end:/\)/,contains:[...E,"self",{begin:/\)/,endsParent:!0}]};E.push(g);let m=[{className:"punctuation mustache",keywords:a,begin:n.concat(/\{\{\{?#?/),end:/\}\}\}?/,contains:[{begin:/\}\}\}?/,endsParent:!0},...E,g]}];l.variants.forEach(H=>H.contains.push(...m));let G=[{className:"tag",begin:n.concat(/<:?/,n.lookahead(n.concat(_,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[i,r,R,d,S,...m,A,l,h]},{className:"tag",begin:n.concat(/<\/:?/,n.lookahead(n.concat(_,/>/))),end:/\>/,contains:[h]}];return s()}function Z(t){return N("(?=",t,")")}function $(t){return N("(",t,")?")}function N(...t){return t.map(e=>T(e)).join("")}function j(...t){return"("+t.map(e=>T(e)).join("|")+")"}function T(t){return t?typeof t=="string"?t:t.source:null}var n={lookahead:Z,either:j,optional:$,concat:N};hljs.registerLanguage("glimmer",u);})();
(()=>{var U=Object.defineProperty;var q=Object.prototype.hasOwnProperty;var f=Object.getOwnPropertySymbols,B=Object.prototype.propertyIsEnumerable;var R=(n,o,t)=>o in n?U(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,e=(n,o)=>{for(var t in o||(o={}))q.call(o,t)&&R(n,t,o[t]);if(f)for(var t of f(o))B.call(o,t)&&R(n,t,o[t]);return n};function g(n){let o="eq neq",t="gt gte le lte",A="and or not",x="let each each-in if else unless",y="log debugger",I="has-block concat fn component helper modifier get hash query-params",L="action on",O="outlet yield",P="true false undefined null";function i(H){return new RegExp(`\\b(?:${H.split(" ").join("|")})\\b`)}let k="(\\()",w="(\\{\\{\\{?)",b="[-+*/_~!@$%^=<>{}\\w]+",a=/[A-Za-z0-9]+/,M=l.either(a,/[a-zA-Z0-9]+\.[a-zA-Z0-9-]+/,l.concat(a,/::/,/-?/,a)),u=/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,S=new RegExp(l.either(/"[^{"]+/,/"/,/'[^{']+/,/'/,/"[^"]+"/,/'[^']+'/)),c={"parameter argument property":{pattern:/@[\w\d-_]+/}},r={punctuation:[{pattern:/[!#%&:()*+,.\/;<=>\[\\\]^`{|}~]+/},{pattern:/^=/,alias:"attr-equals"},{pattern:/\/?>/}]},_={"function-name":[{pattern:new RegExp(k+b),lookbehind:!0},{pattern:new RegExp(w+b),lookbehind:!0}]},h={builtin:i([L,O,y,x].join(" ")),keyword:i([I,P].join(" ")),operator:i([o,t,A,"as"].join(" "))},j={function:{greedy:!0,pattern:/\([\S-_\d]+\b/,inside:e(e(e({},r),_),h)}},T={"this-expression":{pattern:/this\.[\S]+/,lookbehind:!0,greedy:!0,inside:e(e({},r),{namespace:/this/,property:/[\S]+/})}},C={"member-expression":{pattern:/[\S]+\.[\S]+/,lookbehind:!0,greedy:!0,inside:e(e({},r),{constant:/[\S]+/,property:/[\S]+/})}},p=e(e(e(e(e(e(e(e(e({},j),r),T),C),c),{number:u,boolean:/\b(?:true|false)\b/}),h),_),{"attr-name":/^[^=]+=/,string:S,variable:/\b[A-Za-z0-9_-]+\b/}),s={mustache:{pattern:/\{\{\{?\/?[^}]+?\}?\}\}/,lookbehind:!0,alias:"punctuation",greedy:!0,inside:e(e({},{"sub-expression":{alias:"punctuation",pattern:/\([^)]+\)/,lookbehind:!0,greedy:!0,inside:p}}),p)}},d={string:{pattern:S,inside:s}};p.string=d.string;let E=n.languages.markup;if(!E)throw new Error("prism-markup is required");n.languages.glimmer=e(e({comment:[{pattern:/\{\{!--[\s\S]*?--\}\}/},{pattern:/\{\{![\s\S]*?\}\}/}],number:u},s),{tag:e(e({},E.tag),{inside:e(e(e(e(e({number:u},c),s),{tag:e(e({},E.tag.inside.tag),{inside:e(e({},r),{"class-name":new RegExp(M)})}),"attr-name":{pattern:/\b[^=\b]+=/,inside:e(e(e(e({},d),r),c),s)}}),r),d)})})}function z(n){return m("(?=",n,")")}function D(n){return m("(",n,")?")}function m(...n){return n.map(t=>N(t)).join("")}function G(...n){return"("+n.map(t=>N(t)).join("|")+")"}function N(n){return n?typeof n=="string"?n:n.source:null}var l={lookahead:z,either:G,optional:D,concat:m};g(Prism);})();
{
"name": "prismjs-glimmer",
"version": "1.1.0",
"version": "1.1.1",
"description": "Glimmer syntax highlighting with Prism.JS",
"main": "src/index.js",
"main": "dist/glimmer.cjs.cjs",
"browser": "dist/glimmer.esm.min.js",
"type": "module",

@@ -7,0 +8,0 @@ "repository": "git@github.com:NullVoxPopuli/prismjs-glimmer.git",

@@ -172,3 +172,3 @@ /* eslint-disable no-use-before-define */

const { markup } = Prism.languages;
const markup = Prism.languages.markup;

@@ -175,0 +175,0 @@ if (!markup) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc