gradle.js 1.8 KB

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