gradle.js 2.0 KB

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