htmlbars.json 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "case_insensitive": true,
  3. "subLanguage": "xml",
  4. "contains": [
  5. {
  6. "className": "comment",
  7. "begin": "{{!(--)?",
  8. "end": "(--)?}}",
  9. "contains": [
  10. {
  11. "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
  12. },
  13. {
  14. "className": "doctag",
  15. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  16. "relevance": 0
  17. }
  18. ]
  19. },
  20. {
  21. "className": "template-tag",
  22. "begin": "\\{\\{[#\\\/]",
  23. "end": "\\}\\}",
  24. "contains": [
  25. {
  26. "className": "name",
  27. "begin": "[a-zA-Z\\.\\-]+",
  28. "keywords": {
  29. "builtin-name": "action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view"
  30. },
  31. "starts": {
  32. "endsWithParent": true,
  33. "relevance": 0,
  34. "keywords": {
  35. "keyword": "as",
  36. "built_in": "action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view"
  37. },
  38. "contains": [
  39. {
  40. "className": "string",
  41. "begin": "\"",
  42. "end": "\"",
  43. "illegal": "\\n",
  44. "contains": [
  45. {
  46. "begin": "\\\\[\\s\\S]",
  47. "relevance": 0
  48. }
  49. ]
  50. },
  51. {
  52. "illegal": "\\}\\}",
  53. "begin": "[a-zA-Z0-9_]+=",
  54. "returnBegin": true,
  55. "relevance": 0,
  56. "contains": [
  57. {
  58. "className": "attr",
  59. "begin": "[a-zA-Z0-9_]+"
  60. }
  61. ]
  62. },
  63. {
  64. "className": "number",
  65. "begin": "\\b\\d+(\\.\\d+)?",
  66. "relevance": 0
  67. }
  68. ]
  69. }
  70. }
  71. ]
  72. },
  73. {
  74. "className": "template-variable",
  75. "begin": "\\{\\{[a-zA-Z][a-zA-Z\\-]+",
  76. "end": "\\}\\}",
  77. "keywords": {
  78. "keyword": "as",
  79. "built_in": "action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view"
  80. },
  81. "contains": [
  82. {
  83. "$ref": "#contains.1.contains.0.starts.contains.0"
  84. }
  85. ]
  86. }
  87. ]
  88. }