Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. ...
  4. <div><?php echo "content"; ?></div>
  5. ...
  6. </html>
  7.  
  8. <Language name="html" ext="html htm shtml shtm xhtml hta"
  9.  
  10. <Language name="html" ext="html htm shtml shtm xhtml hta php"
  11.  
  12. <Language name="php" ext="php php3 phtml"
  13.  
  14. <Language name="php" ext="php1 php3 phtml"
  15.  
  16. <association langID="6" id="java"/>
  17. <association langID="9" id="xml_node"/>
  18.  
  19. <association langID="6" id="java"/>
  20. <association langID="8" id="html_function"/>
  21. <association langID="9" id="xml_node"/>
  22.  
  23. <parser id="html_function" displayName="PHP" commentExpr="((/*.*?*)/|(//.*?$))">
  24. <classRange
  25. mainExpr="^[s]*(class|abstract[s]+class|final[s]+class)[t ]+[w]+([s]*|[s]*(extends|implements)[s]+[w\]+[s]*)?{"
  26. openSymbole = "{"
  27. closeSymbole = "}"
  28. displayMode="node">
  29. <className>
  30. <nameExpr expr="(class|abstract[s]+class|final[s]+class)[s]+[w]+"/>
  31. <nameExpr expr="[s]+[w]+Z"/>
  32. <nameExpr expr="[w]+Z"/>
  33. </className>
  34. <function
  35. mainExpr="^[s]*((static|public|protected|private|final)*(s+(static|public|protected|private|final))+[s]+)?(function[s]+)+([w]+([s]+[w]+)?([s]+|*[s]+|[s]+*|[s]+*[s]+))?([w_]+[s]*::)?(?!(if|while|for|switch))[w_~]+[s]*([^{]*{">
  36. <functionName>
  37. <funcNameExpr expr="(?!(if|while|for|switch))[w_]+[s]*([^{]*"/>
  38. <!-- comment below node if want display method with parmas -->
  39. <funcNameExpr expr="(?!(if|while|for|switch))[w_]+"/>
  40. </functionName>
  41. </function>
  42. </classRange>
  43. <function
  44. mainExpr="^[s]*function[s]+w+("
  45.  
  46. displayMode="$className->$functionName">
  47. <functionName>
  48. <nameExpr expr="(?!(if|while|for))[w_]+[s]*("/>
  49. <nameExpr expr="(?!(if|while|for))[w_]+"/>
  50. </functionName>
  51. <className>
  52. <nameExpr expr="[w_]+(?=[s]*::)"/>
  53. </className>
  54. </function>
  55. </parser>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement