diff --git a/webtools/lxr/tests/syntax-highlighting/lone.c b/webtools/lxr/tests/syntax-highlighting/lone.c new file mode 100644 index 00000000000..e55250d0fab --- /dev/null +++ b/webtools/lxr/tests/syntax-highlighting/lone.c @@ -0,0 +1,12 @@ +/** + * Have you ever wondered what it takes to become an identifier? + */ + +void this_should_probably_be_an_identifier(void) +{ +} + +#define BLAH void +BLAH this_should_probably_be_an_identifier_too(BLAH) +{ +} diff --git a/webtools/lxr/tests/syntax-highlighting/lone.cpp b/webtools/lxr/tests/syntax-highlighting/lone.cpp new file mode 100644 index 00000000000..b0cbd681718 --- /dev/null +++ b/webtools/lxr/tests/syntax-highlighting/lone.cpp @@ -0,0 +1,33 @@ +/** + * Have you ever wondered what it takes to become an identifier? + */ + +class this_is_a_class { +void this_method_should_probably_be_an_identifier() +{ +} + +}; + +class outer_class { + class inner_class { + struct sucky { + } ness; + union bleck { + int thing; + char eep; + } ery; + }; +}; + +class _inner_class { +}; + +struct sucky_ { +} ness_; + +union bleck_ { + int thing_; + char eep_; +} ery_; +