aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/cpp/x.cxx.styled
blob: c269ed1b40344a964984ba2ad801df9d4eed98de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{2}// A demonstration program
{9}#include <stdio.h>
#if 0 {23}/* */{9}
{73}#define DUMMY() \
	if (1);
{9}#endif
{0}
{9}#define M\

{0}\
 
{5}int{0} {11}main{10}(){0} {10}{{0}
	{11}double{0} {11}x{10}[]{0} {10}={0} {10}{{4}3.14159{10},{4}6.02e23{10},{4}1.6e-19{10},{4}1.0{10}+{4}1{10}};{0}
	{5}int{0} {11}y{10}[]{0} {10}={0} {10}{{4}75{10},{4}0113{10},{4}0x4b{10}};{0}
	{11}printf{10}({6}"hello world %d %g{27}\n{6}"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0}

	{2}// JavaScript regular expression (14) tests
{0}	{5}let{0} {11}a{0} {10}={0} {14}/a/{10};{0}
	{5}let{0} {11}b{0} {10}={0} {14}/[a-z]+/gi{10};{0}
{10}}{0}