diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-05 03:19:54 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | edee83272efe9b597bc27e8060539cdffa3b12a8 (patch) | |
| tree | 0ee5a346d619b55c932eb87f0a4578d03d4f0116 /queries/arduino | |
| parent | feat: query formatting script (diff) | |
| download | nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.gz nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.bz2 nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.lz nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.xz nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.tar.zst nvim-treesitter-edee83272efe9b597bc27e8060539cdffa3b12a8.zip | |
refactor: manual pre-cleanup
Moving comments, adding `format-ignore` to lines that will be better
with it
Diffstat (limited to 'queries/arduino')
| -rw-r--r-- | queries/arduino/highlights.scm | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/queries/arduino/highlights.scm b/queries/arduino/highlights.scm index a4e74ae89..a2e121a06 100644 --- a/queries/arduino/highlights.scm +++ b/queries/arduino/highlights.scm @@ -1,75 +1,75 @@ ; inherits: cpp ((identifier) @function.builtin - (#any-of? @function.builtin - ; Digital I/O - "digitalRead" - "digitalWrite" - "pinMode" - ; Analog I/O - "analogRead" - "analogReference" - "analogWrite" - ; Zero, Due & MKR Family - "analogReadResolution" - "analogWriteResolution" - ; Advanced I/O - "noTone" - "pulseIn" - "pulseInLong" - "shiftIn" - "shiftOut" - "tone" - ; Time - "delay" - "delayMicroseconds" - "micros" - "millis" - ; Math - "abs" - "constrain" - "map" - "max" - "min" - "pow" - "sq" - "sqrt" - ; Trigonometry - "cos" - "sin" - "tan" - ; Characters - "isAlpha" - "isAlphaNumeric" - "isAscii" - "isControl" - "isDigit" - "isGraph" - "isHexadecimalDigit" - "isLowerCase" - "isPrintable" - "isPunct" - "isSpace" - "isUpperCase" - "isWhitespace" - ; Random Numbers - "random" - "randomSeed" - ; Bits and Bytes - "bit" - "bitClear" - "bitRead" - "bitSet" - "bitWrite" - "highByte" - "lowByte" - ; External Interrupts - "attachInterrupt" - "detachInterrupt" - ; Interrupts - "interrupts" - "noInterrupts" - )) + ; format-ignore + (#any-of? @function.builtin + ; Digital I/O + "digitalRead" + "digitalWrite" + "pinMode" + ; Analog I/O + "analogRead" + "analogReference" + "analogWrite" + ; Zero, Due & MKR Family + "analogReadResolution" + "analogWriteResolution" + ; Advanced I/O + "noTone" + "pulseIn" + "pulseInLong" + "shiftIn" + "shiftOut" + "tone" + ; Time + "delay" + "delayMicroseconds" + "micros" + "millis" + ; Math + "abs" + "constrain" + "map" + "max" + "min" + "pow" + "sq" + "sqrt" + ; Trigonometry + "cos" + "sin" + "tan" + ; Characters + "isAlpha" + "isAlphaNumeric" + "isAscii" + "isControl" + "isDigit" + "isGraph" + "isHexadecimalDigit" + "isLowerCase" + "isPrintable" + "isPunct" + "isSpace" + "isUpperCase" + "isWhitespace" + ; Random Numbers + "random" + "randomSeed" + ; Bits and Bytes + "bit" + "bitClear" + "bitRead" + "bitSet" + "bitWrite" + "highByte" + "lowByte" + ; External Interrupts + "attachInterrupt" + "detachInterrupt" + ; Interrupts + "interrupts" + "noInterrupts")) ((identifier) @type.builtin (#any-of? @type.builtin |
