_usd_builtins.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. """
  2. pygments.lexers._usd_builtins
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. A collection of known USD-related keywords, attributes, and types.
  5. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. COMMON_ATTRIBUTES = [
  9. "extent",
  10. "xformOpOrder",
  11. ]
  12. KEYWORDS = [
  13. "class",
  14. "clips",
  15. "custom",
  16. "customData",
  17. "def",
  18. "dictionary",
  19. "inherits",
  20. "over",
  21. "payload",
  22. "references",
  23. "rel",
  24. "subLayers",
  25. "timeSamples",
  26. "uniform",
  27. "variantSet",
  28. "variantSets",
  29. "variants",
  30. ]
  31. OPERATORS = [
  32. "add",
  33. "append",
  34. "delete",
  35. "prepend",
  36. "reorder",
  37. ]
  38. SPECIAL_NAMES = [
  39. "active",
  40. "apiSchemas",
  41. "defaultPrim",
  42. "elementSize",
  43. "endTimeCode",
  44. "hidden",
  45. "instanceable",
  46. "interpolation",
  47. "kind",
  48. "startTimeCode",
  49. "upAxis",
  50. ]
  51. TYPES = [
  52. "asset",
  53. "bool",
  54. "color3d",
  55. "color3f",
  56. "color3h",
  57. "color4d",
  58. "color4f",
  59. "color4h",
  60. "double",
  61. "double2",
  62. "double3",
  63. "double4",
  64. "float",
  65. "float2",
  66. "float3",
  67. "float4",
  68. "frame4d",
  69. "half",
  70. "half2",
  71. "half3",
  72. "half4",
  73. "int",
  74. "int2",
  75. "int3",
  76. "int4",
  77. "keyword",
  78. "matrix2d",
  79. "matrix3d",
  80. "matrix4d",
  81. "normal3d",
  82. "normal3f",
  83. "normal3h",
  84. "point3d",
  85. "point3f",
  86. "point3h",
  87. "quatd",
  88. "quatf",
  89. "quath",
  90. "string",
  91. "syn",
  92. "token",
  93. "uchar",
  94. "uchar2",
  95. "uchar3",
  96. "uchar4",
  97. "uint",
  98. "uint2",
  99. "uint3",
  100. "uint4",
  101. "usdaType",
  102. "vector3d",
  103. "vector3f",
  104. "vector3h",
  105. ]