1
0

gradle.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Language: Gradle
  3. Author: Damian Mee <[email protected]>
  4. Website: http://meeDamian.com
  5. */
  6. function(hljs) {
  7. return {
  8. case_insensitive: true,
  9. keywords: {
  10. keyword:
  11. 'task project allprojects subprojects artifacts buildscript configurations ' +
  12. 'dependencies repositories sourceSets description delete from into include ' +
  13. 'exclude source classpath destinationDir includes options sourceCompatibility ' +
  14. 'targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant ' +
  15. 'def abstract break case catch continue default do else extends final finally ' +
  16. 'for if implements instanceof native new private protected public return static ' +
  17. 'switch synchronized throw throws transient try volatile while strictfp package ' +
  18. 'import false null super this true antlrtask checkstyle codenarc copy boolean ' +
  19. 'byte char class double float int interface long short void compile runTime ' +
  20. 'file fileTree abs any append asList asWritable call collect compareTo count ' +
  21. 'div dump each eachByte eachFile eachLine every find findAll flatten getAt ' +
  22. 'getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods ' +
  23. 'isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter ' +
  24. 'newReader newWriter next plus pop power previous print println push putAt read ' +
  25. 'readBytes readLines reverse reverseEach round size sort splitEachLine step subMap ' +
  26. 'times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader ' +
  27. 'withStream withWriter withWriterAppend write writeLine'
  28. },
  29. contains: [
  30. hljs.C_LINE_COMMENT_MODE,
  31. hljs.C_BLOCK_COMMENT_MODE,
  32. hljs.APOS_STRING_MODE,
  33. hljs.QUOTE_STRING_MODE,
  34. hljs.NUMBER_MODE,
  35. hljs.REGEXP_MODE
  36. ]
  37. }
  38. }