fcp-fl.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * 注册命名空间:baidu.FL
  3. */
  4. baidu.namespace.register("baidu.FL");
  5. /**
  6. * FL常量
  7. * @author lichengyin (FCP:PHP代码)
  8. * @cover zhaoxianlie (FCPHelper:将PHP代码重写为Javascript代码)
  9. */
  10. baidu.FL = new (function() {
  11. this.FL_EOF = 1; //结束
  12. this.FL_TPL_DELIMITER = 2; //模板语法
  13. this.FL_NEW_LINE = 3; //new line
  14. this.FL_NORMAL = 4; //normal,一般很少出现这个
  15. this.HTML_CONTENT = 111; //文本
  16. this.HTML_TAG = 112; //一般标签
  17. this.HTML_JS_START = 113; //js start
  18. this.HTML_JS_CONTENT = 114; //js content,要手工调用js analytic
  19. this.HTML_JS_END = 115; //js end
  20. this.HTML_CSS_START = 116; //css start
  21. this.HTML_CSS_CONTENT = 117; //css content,要手工调用css analytic
  22. this.HTML_CSS_END = 118; //css end
  23. this.HTML_IE_HACK_START = 119; //ie hack start
  24. this.HTML_IE_HACK_EDN = 120; //ie hack end
  25. this.HTML_DOC_TYPE = 121; //doc type
  26. this.HTML_COMMENT = 122; //html comment
  27. this.HTML_STATUS_OK = 123; //status ok
  28. this.HTML_TAG_START = 124; //tag start
  29. this.HTML_TAG_END = 125; //tag end
  30. this.HTML_TPL_ATTR_NAME = 126; //tpl attributes name
  31. this.HTML_XML = 127; //is xml
  32. this.HTML_TEXTAREA_START = 128; //textarea tag start
  33. this.HTML_TEXTAREA_CONTENT = 129; //textarea tag end
  34. this.HTML_TEXTAREA_END = 130; //textarea tag end
  35. this.HTML_PRE_START = 131; //pre tag start
  36. this.HTML_PRE_CONTENT = 132; //pre tag end
  37. this.HTML_PRE_END = 133; //pre tag end
  38. this.JS_START_EXPR = 211; //start expression
  39. this.JS_END_EXPR = 212; //end expression
  40. this.JS_START_BLOCK = 213; //start block
  41. this.JS_END_BLOCK = 214; //end block
  42. this.JS_SEMICOLON = 215; //分号
  43. this.JS_WORD = 216; //单词
  44. this.JS_OPERATOR = 217; //操作符
  45. this.JS_EQUALS = 218; //等号
  46. this.JS_INLINE_COMMENT = 219; //行内注释
  47. this.JS_BLOCK_COMMENT = 220; //跨级注释
  48. this.JS_COMMENT = 221; //注释
  49. this.JS_STRING = 222; //字符串
  50. this.JS_IE_CC = 223; //条件编译
  51. this.JS_REGEXP = 224; //正则
  52. this.JS_MODE_EXPRESSION = 250; //
  53. this.JS_MODE_INDENT_EXPRESSION = 251; //
  54. this.JS_MODE_DO_BLOCK = 252; //
  55. this.JS_MODE_BLOCK = 253; //
  56. this.JS_MODE_ARRAY = 254;
  57. this.CSS_AT = 311; //@
  58. this.CSS_NORMAL = 312; //
  59. this.CSS_DEVICE_DESC = 313; //设备描述内容
  60. this.CSS_DEVICE_START = 314; //设备开始符,为{
  61. this.CSS_DEVICE_END = 315; //设备结束符,为}
  62. this.CSS_SELECTOER = 316; //选择器
  63. this.CSS_SELECTOER_START = 317; //选择器开始符,为{
  64. this.CSS_SELECTOER_END = 318; //选择器结束符,为}
  65. this.CSS_COMMENT = 319; //评论
  66. this.CSS_PROPERTY = 320; //属性
  67. this.CSS_VALUE = 321; //值
  68. this.CSS_SEMICOLON = 322; //分号
  69. this.CSS_COLON = 323; //冒号
  70. })();