diff options
Diffstat (limited to 'pygments/lexers/amdgpu.py')
-rw-r--r-- | pygments/lexers/amdgpu.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/amdgpu.py b/pygments/lexers/amdgpu.py index 5356b225..9e4ea0fa 100644 --- a/pygments/lexers/amdgpu.py +++ b/pygments/lexers/amdgpu.py @@ -35,11 +35,12 @@ class AMDGPULexer(RegexLexer): (r'(([a-z_0-9])*:([a-z_0-9])*)', Name.Attribute), (r'(\[|\]|\(|\)|,|\:|\&)', Text), (r'([;#]|//).*?\n', Comment.Single), - (r'((s_)?(ds|buffer|flat|image)_[a-z0-9_]+)', Keyword.Reserved), + (r'((s_)?(scratch|ds|buffer|flat|image)_[a-z0-9_]+)', Keyword.Reserved), (r'(_lo|_hi)', Name.Variable), (r'(vmcnt|lgkmcnt|expcnt)', Name.Attribute), + (r'(attr[0-9].[a-z])', Name.Attribute), (words(( - 'op', 'vaddr', 'vdata', 'soffset', 'srsrc', 'format', + 'op', 'vaddr', 'vdata', 'off', 'soffset', 'srsrc', 'format', 'offset', 'offen', 'idxen', 'glc', 'dlc', 'slc', 'tfe', 'lds', 'lit', 'unorm'), suffix=r'\b'), Name.Attribute), (r'(label_[a-z0-9]+)', Keyword), |