44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
-- Test file for kate's syntax highlighting
|
|
Title "Test file";
|
|
|
|
<beginfold id='1'>-- BEGIN region (a region marker region) :)</beginfold id='1'>
|
|
|
|
% multiline comment
|
|
goes on here %
|
|
|
|
<endfold id='1'>-- END</endfold id='1'>
|
|
|
|
FUNCTION FCT <beginfold id='2'>(</beginfold id='2'>Clk, Key<endfold id='2'>)</endfold id='2'> RETURNS <beginfold id='2'>(</beginfold id='2'>pulse<endfold id='2'>)</endfold id='2'>;
|
|
|
|
SUBDESIGN CDCLOCK2
|
|
<beginfold id='2'>(</beginfold id='2'>
|
|
in : INPUT; -- go in
|
|
out[3..0] : OUTPUT; -- come out
|
|
<endfold id='2'>)</endfold id='2'>
|
|
|
|
VARIABLE
|
|
start : soft;
|
|
usec[3..0] : node;
|
|
|
|
<beginfold id='3'>BEGIN</beginfold id='3'>
|
|
|
|
in = FCT<beginfold id='2'>(</beginfold id='2'>clock, some_key<endfold id='2'>)</endfold id='2'>; -- senseless code
|
|
|
|
-- comment
|
|
blubb = <beginfold id='2'>(</beginfold id='2'>blobb[] == H"3ff"<endfold id='2'>)</endfold id='2'>;
|
|
|
|
<beginfold id='4'>IF</beginfold id='4'> in THEN asdf
|
|
-- folde me
|
|
<endfold id='4'>END IF</endfold id='4'>;
|
|
|
|
<beginfold id='5'>TABLE</beginfold id='5'>
|
|
-- missing code
|
|
<endfold id='5'>END TABLE</endfold id='5'>
|
|
|
|
|
|
<endfold id='3'>END</endfold id='3'>;
|
|
|
|
-- hex, octal, binary
|
|
H"0" => B"1000000";
|
|
O"01234567";
|