lib/rouge/lexers/glsl.rb in rouge-3.4.1 vs lib/rouge/lexers/glsl.rb in rouge-3.5.0
- old
+ new
@@ -15,13 +15,9 @@
mimetypes 'x-shader/x-vertex', 'x-shader/x-fragment', 'x-shader/x-geometry'
title "GLSL"
desc "The GLSL shader language"
- # optional comment or whitespace
- ws = %r((?:\s|//.*?\n|/[*].*?[*]/)+)
- id = /[a-zA-Z_][a-zA-Z0-9_]*/
-
def self.keywords
@keywords ||= Set.new %w(
attribute const uniform varying
layout
centroid flat smooth noperspective