syntax_test_accessor.c (392B)
1 // SYNTAX TEST "Packages/C++/C.sublime-syntax" 2 3 typedef struct _X 4 { 5 int a; 6 int b; 7 } X; 8 9 int main() 10 { 11 X x; 12 x. 13 // ^ punctuation.accessor 14 } 15 16 int main() 17 { 18 X x; 19 x.. 20 // ^^ invalid.illegal - punctuation.accessor 21 } 22 23 int main() 24 { 25 X x; 26 x... 27 // ^^^ keyword - punctuation.accessor 28 } 29 30 int main() 31 { 32 X* x = malloc(sizeof(X)); 33 x-> 34 // ^^ punctuation.accessor 35 }