prettier-plugin-glsl
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -149,2 +149,3 @@ import { ILexingResult, IToken, Lexer, TokenType } from "chevrotain"; | ||
const VARYING: TokenType; | ||
const ATTRIBUTE: TokenType; | ||
const BOOLCONSTANT: TokenType; | ||
@@ -151,0 +152,0 @@ const FLOATCONSTANT: TokenType; |
@@ -189,2 +189,3 @@ import { IToken } from "chevrotain"; | ||
VARYING: Token | undefined; | ||
ATTRIBUTE: Token | undefined; | ||
CONST: Token | undefined; | ||
@@ -191,0 +192,0 @@ UNIFORM: Token | undefined; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Prettier (https://prettier.io) plugin for GLSL (OpenGL Shading Language).", | ||
@@ -15,0 +15,0 @@ "exports": "./lib/prettier-plugin.cjs.js", |
@@ -579,2 +579,3 @@ // noinspection JSUnusedGlobalSymbols | ||
export const VARYING = createKeyword("VARYING") | ||
export const ATTRIBUTE = createKeyword("ATTRIBUTE") | ||
export const BOOLCONSTANT = createToken({ | ||
@@ -581,0 +582,0 @@ name: "BOOLCONSTANT", |
@@ -264,2 +264,4 @@ import { IToken } from "chevrotain" | ||
VARYING: Token | undefined | ||
// Actually from OpenGL ES 1.00 | ||
ATTRIBUTE: Token | undefined | ||
CONST: Token | undefined | ||
@@ -266,0 +268,0 @@ UNIFORM: Token | undefined |
@@ -625,3 +625,3 @@ /* eslint-disable @typescript-eslint/member-ordering */ | ||
(): StorageQualifier => { | ||
let CONST, CENTROID, IN, OUT, UNIFORM, VARYING | ||
let CONST, CENTROID, IN, OUT, UNIFORM, VARYING, ATTRIBUTE | ||
this.OR([ | ||
@@ -636,2 +636,3 @@ { ALT: () => (CONST = this.CONSUME(TOKEN.CONST)) }, | ||
{ ALT: () => (VARYING = this.CONSUME(TOKEN.VARYING)) }, | ||
{ ALT: () => (ATTRIBUTE = this.CONSUME(TOKEN.ATTRIBUTE)) }, | ||
]) | ||
@@ -642,3 +643,3 @@ }, | ||
]) | ||
return { kind: "storageQualifier", CONST, CENTROID, IN, OUT, VARYING, UNIFORM } | ||
return { kind: "storageQualifier", CONST, CENTROID, IN, OUT, VARYING, ATTRIBUTE, UNIFORM } | ||
}, | ||
@@ -645,0 +646,0 @@ ) |
@@ -577,2 +577,5 @@ // noinspection JSUnusedGlobalSymbols | ||
} | ||
if (n.ATTRIBUTE) { | ||
parts.push("attribute ") | ||
} | ||
if (n.UNIFORM) { | ||
@@ -579,0 +582,0 @@ parts.push("uniform ") |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
534694
11747