Team Ai
Apppublic

aravagarwal/CodeCloakPII

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
highlights.scm134 linesDownload Raw Back to queries
1; Identifier naming conventions2 3(identifier) @variable4 5((identifier) @constructor6 (#match? @constructor "^[A-Z]"))7 8((identifier) @constant9 (#match? @constant "^[A-Z][A-Z_]*$"))10 11; Function calls12 13(decorator) @function14 15(call16  function: (attribute attribute: (identifier) @function.method))17(call18  function: (identifier) @function)19 20; Builtin functions21 22((call23  function: (identifier) @function.builtin)24 (#match?25   @function.builtin26   "^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$"))27 28; Function definitions29 30(function_definition31  name: (identifier) @function)32 33(attribute attribute: (identifier) @property)34(type (identifier) @type)35 36; Literals37 38[39  (none)40  (true)41  (false)42] @constant.builtin43 44[45  (integer)46  (float)47] @number48 49(comment) @comment50(string) @string51(escape_sequence) @escape52 53(interpolation54  "{" @punctuation.special55  "}" @punctuation.special) @embedded56 57[58  "-"59  "-="60  "!="61  "*"62  "**"63  "**="64  "*="65  "/"66  "//"67  "//="68  "/="69  "&"70  "&="71  "%"72  "%="73  "^"74  "^="75  "+"76  "->"77  "+="78  "<"79  "<<"80  "<<="81  "<="82  "<>"83  "="84  ":="85  "=="86  ">"87  ">="88  ">>"89  ">>="90  "|"91  "|="92  "~"93  "@="94  "and"95  "in"96  "is"97  "not"98  "or"99] @operator100 101[102  "as"103  "assert"104  "async"105  "await"106  "break"107  "class"108  "continue"109  "def"110  "del"111  "elif"112  "else"113  "except"114  "exec"115  "finally"116  "for"117  "from"118  "global"119  "if"120  "import"121  "lambda"122  "nonlocal"123  "pass"124  "print"125  "raise"126  "return"127  "try"128  "while"129  "with"130  "yield"131  "match"132  "case"133] @keyword134