d8b6942666
For ages dtc has included a sample dts, comment-test.dts, for checking various lexical corner cases in comment processing. In fact, it predates the automated testsuite, and has never been integrated into it. This patch addresses this oversight, folding the comment handling test in with the rest of the testsuite. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
39 lines
456 B
Text
39 lines
456 B
Text
/* regexps for lexing comments are.. tricky. Check if we've actually
|
|
* got it right */
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
// line comment
|
|
prop1;
|
|
/* comment */
|
|
prop2;
|
|
/* multiline
|
|
|
|
notaprop1;
|
|
|
|
comment */
|
|
prop3;
|
|
/**/
|
|
prop4;
|
|
/***/
|
|
prop5;
|
|
/****/
|
|
prop6;
|
|
/* another
|
|
* multiline
|
|
* comment */
|
|
prop7;
|
|
/* yet
|
|
* another
|
|
* multline
|
|
* comment
|
|
*/
|
|
prop8;
|
|
/** try this */
|
|
prop9;
|
|
/* and this **/
|
|
prop10;
|
|
child /* finally */ {
|
|
};
|
|
};
|
|
/* final comment */
|