Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/lexers/freefem.py: 51%

37 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:16 +0000

1""" 

2 pygments.lexers.freefem 

3 ~~~~~~~~~~~~~~~~~~~~~~~ 

4 

5 Lexer for FreeFem++ language. 

6 

7 :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. 

8 :license: BSD, see LICENSE for details. 

9""" 

10 

11from pygments.token import Comment, Operator, Keyword, Name 

12 

13from pygments.lexers.c_cpp import CppLexer 

14 

15__all__ = ['FreeFemLexer'] 

16 

17 

18class FreeFemLexer(CppLexer): 

19 """ 

20 For FreeFem++ source. 

21 

22 This is an extension of the CppLexer, as the FreeFem Language is a superset 

23 of C++. 

24 

25 .. versionadded:: 2.4 

26 """ 

27 

28 name = 'Freefem' 

29 url = 'https://freefem.org/' 

30 aliases = ['freefem'] 

31 filenames = ['*.edp'] 

32 mimetypes = ['text/x-freefem'] 

33 

34 # Language operators 

35 operators = {'+', '-', '*', '.*', '/', './', '%', '^', '^-1', ':', '\''} 

36 

37 # types 

38 types = {'bool', 'border', 'complex', 'dmatrix', 'fespace', 'func', 'gslspline', 

39 'ifstream', 'int', 'macro', 'matrix', 'mesh', 'mesh3', 'mpiComm', 

40 'mpiGroup', 'mpiRequest', 'NewMacro', 'EndMacro', 'ofstream', 'Pmmap', 

41 'problem', 'Psemaphore', 'real', 'solve', 'string', 'varf'} 

42 

43 # finite element spaces 

44 fespaces = {'BDM1', 'BDM1Ortho', 'Edge03d', 'Edge13d', 'Edge23d', 'FEQF', 'HCT', 

45 'P0', 'P03d', 'P0Edge', 'P1', 'P13d', 'P1b', 'P1b3d', 'P1bl', 'P1bl3d', 

46 'P1dc', 'P1Edge', 'P1nc', 'P2', 'P23d', 'P2b', 'P2BR', 'P2dc', 'P2Edge', 

47 'P2h', 'P2Morley', 'P2pnc', 'P3', 'P3dc', 'P3Edge', 'P4', 'P4dc', 

48 'P4Edge', 'P5Edge', 'RT0', 'RT03d', 'RT0Ortho', 'RT1', 'RT1Ortho', 

49 'RT2', 'RT2Ortho'} 

50 

51 # preprocessor 

52 preprocessor = {'ENDIFMACRO', 'include', 'IFMACRO', 'load'} 

53 

54 # Language keywords 

55 keywords = { 

56 'adj', 

57 'append', 

58 'area', 

59 'ARGV', 

60 'be', 

61 'binary', 

62 'BoundaryEdge', 

63 'bordermeasure', 

64 'CG', 

65 'Cholesky', 

66 'cin', 

67 'cout', 

68 'Crout', 

69 'default', 

70 'diag', 

71 'edgeOrientation', 

72 'endl', 

73 'false', 

74 'ffind', 

75 'FILE', 

76 'find', 

77 'fixed', 

78 'flush', 

79 'GMRES', 

80 'good', 

81 'hTriangle', 

82 'im', 

83 'imax', 

84 'imin', 

85 'InternalEdge', 

86 'l1', 

87 'l2', 

88 'label', 

89 'lenEdge', 

90 'length', 

91 'LINE', 

92 'linfty', 

93 'LU', 

94 'm', 

95 'max', 

96 'measure', 

97 'min', 

98 'mpiAnySource', 

99 'mpiBAND', 

100 'mpiBXOR', 

101 'mpiCommWorld', 

102 'mpiLAND', 

103 'mpiLOR', 

104 'mpiLXOR', 

105 'mpiMAX', 

106 'mpiMIN', 

107 'mpiPROD', 

108 'mpirank', 

109 'mpisize', 

110 'mpiSUM', 

111 'mpiUndefined', 

112 'n', 

113 'N', 

114 'nbe', 

115 'ndof', 

116 'ndofK', 

117 'noshowbase', 

118 'noshowpos', 

119 'notaregion', 

120 'nt', 

121 'nTonEdge', 

122 'nuEdge', 

123 'nuTriangle', 

124 'nv', 

125 'P', 

126 'pi', 

127 'precision', 

128 'qf1pE', 

129 'qf1pElump', 

130 'qf1pT', 

131 'qf1pTlump', 

132 'qfV1', 

133 'qfV1lump', 

134 'qf2pE', 

135 'qf2pT', 

136 'qf2pT4P1', 

137 'qfV2', 

138 'qf3pE', 

139 'qf4pE', 

140 'qf5pE', 

141 'qf5pT', 

142 'qfV5', 

143 'qf7pT', 

144 'qf9pT', 

145 'qfnbpE', 

146 'quantile', 

147 're', 

148 'region', 

149 'rfind', 

150 'scientific', 

151 'searchMethod', 

152 'setw', 

153 'showbase', 

154 'showpos', 

155 'sparsesolver', 

156 'sum', 

157 'tellp', 

158 'true', 

159 'UMFPACK', 

160 'unused', 

161 'whoinElement', 

162 'verbosity', 

163 'version', 

164 'volume', 

165 'x', 

166 'y', 

167 'z' 

168 } 

169 

170 # Language shipped functions and class ( ) 

171 functions = { 

172 'abs', 

173 'acos', 

174 'acosh', 

175 'adaptmesh', 

176 'adj', 

177 'AffineCG', 

178 'AffineGMRES', 

179 'arg', 

180 'asin', 

181 'asinh', 

182 'assert', 

183 'atan', 

184 'atan2', 

185 'atanh', 

186 'atof', 

187 'atoi', 

188 'BFGS', 

189 'broadcast', 

190 'buildlayers', 

191 'buildmesh', 

192 'ceil', 

193 'chi', 

194 'complexEigenValue', 

195 'copysign', 

196 'change', 

197 'checkmovemesh', 

198 'clock', 

199 'cmaes', 

200 'conj', 

201 'convect', 

202 'cos', 

203 'cosh', 

204 'cube', 

205 'd', 

206 'dd', 

207 'dfft', 

208 'diffnp', 

209 'diffpos', 

210 'dimKrylov', 

211 'dist', 

212 'dumptable', 

213 'dx', 

214 'dxx', 

215 'dxy', 

216 'dxz', 

217 'dy', 

218 'dyx', 

219 'dyy', 

220 'dyz', 

221 'dz', 

222 'dzx', 

223 'dzy', 

224 'dzz', 

225 'EigenValue', 

226 'emptymesh', 

227 'erf', 

228 'erfc', 

229 'exec', 

230 'exit', 

231 'exp', 

232 'fdim', 

233 'floor', 

234 'fmax', 

235 'fmin', 

236 'fmod', 

237 'freeyams', 

238 'getARGV', 

239 'getline', 

240 'gmshload', 

241 'gmshload3', 

242 'gslcdfugaussianP', 

243 'gslcdfugaussianQ', 

244 'gslcdfugaussianPinv', 

245 'gslcdfugaussianQinv', 

246 'gslcdfgaussianP', 

247 'gslcdfgaussianQ', 

248 'gslcdfgaussianPinv', 

249 'gslcdfgaussianQinv', 

250 'gslcdfgammaP', 

251 'gslcdfgammaQ', 

252 'gslcdfgammaPinv', 

253 'gslcdfgammaQinv', 

254 'gslcdfcauchyP', 

255 'gslcdfcauchyQ', 

256 'gslcdfcauchyPinv', 

257 'gslcdfcauchyQinv', 

258 'gslcdflaplaceP', 

259 'gslcdflaplaceQ', 

260 'gslcdflaplacePinv', 

261 'gslcdflaplaceQinv', 

262 'gslcdfrayleighP', 

263 'gslcdfrayleighQ', 

264 'gslcdfrayleighPinv', 

265 'gslcdfrayleighQinv', 

266 'gslcdfchisqP', 

267 'gslcdfchisqQ', 

268 'gslcdfchisqPinv', 

269 'gslcdfchisqQinv', 

270 'gslcdfexponentialP', 

271 'gslcdfexponentialQ', 

272 'gslcdfexponentialPinv', 

273 'gslcdfexponentialQinv', 

274 'gslcdfexppowP', 

275 'gslcdfexppowQ', 

276 'gslcdftdistP', 

277 'gslcdftdistQ', 

278 'gslcdftdistPinv', 

279 'gslcdftdistQinv', 

280 'gslcdffdistP', 

281 'gslcdffdistQ', 

282 'gslcdffdistPinv', 

283 'gslcdffdistQinv', 

284 'gslcdfbetaP', 

285 'gslcdfbetaQ', 

286 'gslcdfbetaPinv', 

287 'gslcdfbetaQinv', 

288 'gslcdfflatP', 

289 'gslcdfflatQ', 

290 'gslcdfflatPinv', 

291 'gslcdfflatQinv', 

292 'gslcdflognormalP', 

293 'gslcdflognormalQ', 

294 'gslcdflognormalPinv', 

295 'gslcdflognormalQinv', 

296 'gslcdfgumbel1P', 

297 'gslcdfgumbel1Q', 

298 'gslcdfgumbel1Pinv', 

299 'gslcdfgumbel1Qinv', 

300 'gslcdfgumbel2P', 

301 'gslcdfgumbel2Q', 

302 'gslcdfgumbel2Pinv', 

303 'gslcdfgumbel2Qinv', 

304 'gslcdfweibullP', 

305 'gslcdfweibullQ', 

306 'gslcdfweibullPinv', 

307 'gslcdfweibullQinv', 

308 'gslcdfparetoP', 

309 'gslcdfparetoQ', 

310 'gslcdfparetoPinv', 

311 'gslcdfparetoQinv', 

312 'gslcdflogisticP', 

313 'gslcdflogisticQ', 

314 'gslcdflogisticPinv', 

315 'gslcdflogisticQinv', 

316 'gslcdfbinomialP', 

317 'gslcdfbinomialQ', 

318 'gslcdfpoissonP', 

319 'gslcdfpoissonQ', 

320 'gslcdfgeometricP', 

321 'gslcdfgeometricQ', 

322 'gslcdfnegativebinomialP', 

323 'gslcdfnegativebinomialQ', 

324 'gslcdfpascalP', 

325 'gslcdfpascalQ', 

326 'gslinterpakima', 

327 'gslinterpakimaperiodic', 

328 'gslinterpcsplineperiodic', 

329 'gslinterpcspline', 

330 'gslinterpsteffen', 

331 'gslinterplinear', 

332 'gslinterppolynomial', 

333 'gslranbernoullipdf', 

334 'gslranbeta', 

335 'gslranbetapdf', 

336 'gslranbinomialpdf', 

337 'gslranexponential', 

338 'gslranexponentialpdf', 

339 'gslranexppow', 

340 'gslranexppowpdf', 

341 'gslrancauchy', 

342 'gslrancauchypdf', 

343 'gslranchisq', 

344 'gslranchisqpdf', 

345 'gslranerlang', 

346 'gslranerlangpdf', 

347 'gslranfdist', 

348 'gslranfdistpdf', 

349 'gslranflat', 

350 'gslranflatpdf', 

351 'gslrangamma', 

352 'gslrangammaint', 

353 'gslrangammapdf', 

354 'gslrangammamt', 

355 'gslrangammaknuth', 

356 'gslrangaussian', 

357 'gslrangaussianratiomethod', 

358 'gslrangaussianziggurat', 

359 'gslrangaussianpdf', 

360 'gslranugaussian', 

361 'gslranugaussianratiomethod', 

362 'gslranugaussianpdf', 

363 'gslrangaussiantail', 

364 'gslrangaussiantailpdf', 

365 'gslranugaussiantail', 

366 'gslranugaussiantailpdf', 

367 'gslranlandau', 

368 'gslranlandaupdf', 

369 'gslrangeometricpdf', 

370 'gslrangumbel1', 

371 'gslrangumbel1pdf', 

372 'gslrangumbel2', 

373 'gslrangumbel2pdf', 

374 'gslranlogistic', 

375 'gslranlogisticpdf', 

376 'gslranlognormal', 

377 'gslranlognormalpdf', 

378 'gslranlogarithmicpdf', 

379 'gslrannegativebinomialpdf', 

380 'gslranpascalpdf', 

381 'gslranpareto', 

382 'gslranparetopdf', 

383 'gslranpoissonpdf', 

384 'gslranrayleigh', 

385 'gslranrayleighpdf', 

386 'gslranrayleightail', 

387 'gslranrayleightailpdf', 

388 'gslrantdist', 

389 'gslrantdistpdf', 

390 'gslranlaplace', 

391 'gslranlaplacepdf', 

392 'gslranlevy', 

393 'gslranweibull', 

394 'gslranweibullpdf', 

395 'gslsfairyAi', 

396 'gslsfairyBi', 

397 'gslsfairyAiscaled', 

398 'gslsfairyBiscaled', 

399 'gslsfairyAideriv', 

400 'gslsfairyBideriv', 

401 'gslsfairyAiderivscaled', 

402 'gslsfairyBiderivscaled', 

403 'gslsfairyzeroAi', 

404 'gslsfairyzeroBi', 

405 'gslsfairyzeroAideriv', 

406 'gslsfairyzeroBideriv', 

407 'gslsfbesselJ0', 

408 'gslsfbesselJ1', 

409 'gslsfbesselJn', 

410 'gslsfbesselY0', 

411 'gslsfbesselY1', 

412 'gslsfbesselYn', 

413 'gslsfbesselI0', 

414 'gslsfbesselI1', 

415 'gslsfbesselIn', 

416 'gslsfbesselI0scaled', 

417 'gslsfbesselI1scaled', 

418 'gslsfbesselInscaled', 

419 'gslsfbesselK0', 

420 'gslsfbesselK1', 

421 'gslsfbesselKn', 

422 'gslsfbesselK0scaled', 

423 'gslsfbesselK1scaled', 

424 'gslsfbesselKnscaled', 

425 'gslsfbesselj0', 

426 'gslsfbesselj1', 

427 'gslsfbesselj2', 

428 'gslsfbesseljl', 

429 'gslsfbessely0', 

430 'gslsfbessely1', 

431 'gslsfbessely2', 

432 'gslsfbesselyl', 

433 'gslsfbesseli0scaled', 

434 'gslsfbesseli1scaled', 

435 'gslsfbesseli2scaled', 

436 'gslsfbesselilscaled', 

437 'gslsfbesselk0scaled', 

438 'gslsfbesselk1scaled', 

439 'gslsfbesselk2scaled', 

440 'gslsfbesselklscaled', 

441 'gslsfbesselJnu', 

442 'gslsfbesselYnu', 

443 'gslsfbesselInuscaled', 

444 'gslsfbesselInu', 

445 'gslsfbesselKnuscaled', 

446 'gslsfbesselKnu', 

447 'gslsfbessellnKnu', 

448 'gslsfbesselzeroJ0', 

449 'gslsfbesselzeroJ1', 

450 'gslsfbesselzeroJnu', 

451 'gslsfclausen', 

452 'gslsfhydrogenicR1', 

453 'gslsfdawson', 

454 'gslsfdebye1', 

455 'gslsfdebye2', 

456 'gslsfdebye3', 

457 'gslsfdebye4', 

458 'gslsfdebye5', 

459 'gslsfdebye6', 

460 'gslsfdilog', 

461 'gslsfmultiply', 

462 'gslsfellintKcomp', 

463 'gslsfellintEcomp', 

464 'gslsfellintPcomp', 

465 'gslsfellintDcomp', 

466 'gslsfellintF', 

467 'gslsfellintE', 

468 'gslsfellintRC', 

469 'gslsferfc', 

470 'gslsflogerfc', 

471 'gslsferf', 

472 'gslsferfZ', 

473 'gslsferfQ', 

474 'gslsfhazard', 

475 'gslsfexp', 

476 'gslsfexpmult', 

477 'gslsfexpm1', 

478 'gslsfexprel', 

479 'gslsfexprel2', 

480 'gslsfexpreln', 

481 'gslsfexpintE1', 

482 'gslsfexpintE2', 

483 'gslsfexpintEn', 

484 'gslsfexpintE1scaled', 

485 'gslsfexpintE2scaled', 

486 'gslsfexpintEnscaled', 

487 'gslsfexpintEi', 

488 'gslsfexpintEiscaled', 

489 'gslsfShi', 

490 'gslsfChi', 

491 'gslsfexpint3', 

492 'gslsfSi', 

493 'gslsfCi', 

494 'gslsfatanint', 

495 'gslsffermidiracm1', 

496 'gslsffermidirac0', 

497 'gslsffermidirac1', 

498 'gslsffermidirac2', 

499 'gslsffermidiracint', 

500 'gslsffermidiracmhalf', 

501 'gslsffermidirachalf', 

502 'gslsffermidirac3half', 

503 'gslsffermidiracinc0', 

504 'gslsflngamma', 

505 'gslsfgamma', 

506 'gslsfgammastar', 

507 'gslsfgammainv', 

508 'gslsftaylorcoeff', 

509 'gslsffact', 

510 'gslsfdoublefact', 

511 'gslsflnfact', 

512 'gslsflndoublefact', 

513 'gslsflnchoose', 

514 'gslsfchoose', 

515 'gslsflnpoch', 

516 'gslsfpoch', 

517 'gslsfpochrel', 

518 'gslsfgammaincQ', 

519 'gslsfgammaincP', 

520 'gslsfgammainc', 

521 'gslsflnbeta', 

522 'gslsfbeta', 

523 'gslsfbetainc', 

524 'gslsfgegenpoly1', 

525 'gslsfgegenpoly2', 

526 'gslsfgegenpoly3', 

527 'gslsfgegenpolyn', 

528 'gslsfhyperg0F1', 

529 'gslsfhyperg1F1int', 

530 'gslsfhyperg1F1', 

531 'gslsfhypergUint', 

532 'gslsfhypergU', 

533 'gslsfhyperg2F0', 

534 'gslsflaguerre1', 

535 'gslsflaguerre2', 

536 'gslsflaguerre3', 

537 'gslsflaguerren', 

538 'gslsflambertW0', 

539 'gslsflambertWm1', 

540 'gslsflegendrePl', 

541 'gslsflegendreP1', 

542 'gslsflegendreP2', 

543 'gslsflegendreP3', 

544 'gslsflegendreQ0', 

545 'gslsflegendreQ1', 

546 'gslsflegendreQl', 

547 'gslsflegendrePlm', 

548 'gslsflegendresphPlm', 

549 'gslsflegendrearraysize', 

550 'gslsfconicalPhalf', 

551 'gslsfconicalPmhalf', 

552 'gslsfconicalP0', 

553 'gslsfconicalP1', 

554 'gslsfconicalPsphreg', 

555 'gslsfconicalPcylreg', 

556 'gslsflegendreH3d0', 

557 'gslsflegendreH3d1', 

558 'gslsflegendreH3d', 

559 'gslsflog', 

560 'gslsflogabs', 

561 'gslsflog1plusx', 

562 'gslsflog1plusxmx', 

563 'gslsfpowint', 

564 'gslsfpsiint', 

565 'gslsfpsi', 

566 'gslsfpsi1piy', 

567 'gslsfpsi1int', 

568 'gslsfpsi1', 

569 'gslsfpsin', 

570 'gslsfsynchrotron1', 

571 'gslsfsynchrotron2', 

572 'gslsftransport2', 

573 'gslsftransport3', 

574 'gslsftransport4', 

575 'gslsftransport5', 

576 'gslsfsin', 

577 'gslsfcos', 

578 'gslsfhypot', 

579 'gslsfsinc', 

580 'gslsflnsinh', 

581 'gslsflncosh', 

582 'gslsfanglerestrictsymm', 

583 'gslsfanglerestrictpos', 

584 'gslsfzetaint', 

585 'gslsfzeta', 

586 'gslsfzetam1', 

587 'gslsfzetam1int', 

588 'gslsfhzeta', 

589 'gslsfetaint', 

590 'gslsfeta', 

591 'imag', 

592 'int1d', 

593 'int2d', 

594 'int3d', 

595 'intalledges', 

596 'intallfaces', 

597 'interpolate', 

598 'invdiff', 

599 'invdiffnp', 

600 'invdiffpos', 

601 'Isend', 

602 'isInf', 

603 'isNaN', 

604 'isoline', 

605 'Irecv', 

606 'j0', 

607 'j1', 

608 'jn', 

609 'jump', 

610 'lgamma', 

611 'LinearCG', 

612 'LinearGMRES', 

613 'log', 

614 'log10', 

615 'lrint', 

616 'lround', 

617 'max', 

618 'mean', 

619 'medit', 

620 'min', 

621 'mmg3d', 

622 'movemesh', 

623 'movemesh23', 

624 'mpiAlltoall', 

625 'mpiAlltoallv', 

626 'mpiAllgather', 

627 'mpiAllgatherv', 

628 'mpiAllReduce', 

629 'mpiBarrier', 

630 'mpiGather', 

631 'mpiGatherv', 

632 'mpiRank', 

633 'mpiReduce', 

634 'mpiScatter', 

635 'mpiScatterv', 

636 'mpiSize', 

637 'mpiWait', 

638 'mpiWaitAny', 

639 'mpiWtick', 

640 'mpiWtime', 

641 'mshmet', 

642 'NaN', 

643 'NLCG', 

644 'on', 

645 'plot', 

646 'polar', 

647 'Post', 

648 'pow', 

649 'processor', 

650 'processorblock', 

651 'projection', 

652 'randinit', 

653 'randint31', 

654 'randint32', 

655 'random', 

656 'randreal1', 

657 'randreal2', 

658 'randreal3', 

659 'randres53', 

660 'Read', 

661 'readmesh', 

662 'readmesh3', 

663 'Recv', 

664 'rint', 

665 'round', 

666 'savemesh', 

667 'savesol', 

668 'savevtk', 

669 'seekg', 

670 'Sent', 

671 'set', 

672 'sign', 

673 'signbit', 

674 'sin', 

675 'sinh', 

676 'sort', 

677 'splitComm', 

678 'splitmesh', 

679 'sqrt', 

680 'square', 

681 'srandom', 

682 'srandomdev', 

683 'Stringification', 

684 'swap', 

685 'system', 

686 'tan', 

687 'tanh', 

688 'tellg', 

689 'tetg', 

690 'tetgconvexhull', 

691 'tetgreconstruction', 

692 'tetgtransfo', 

693 'tgamma', 

694 'triangulate', 

695 'trunc', 

696 'Wait', 

697 'Write', 

698 'y0', 

699 'y1', 

700 'yn' 

701 } 

702 

703 # function parameters 

704 parameters = { 

705 'A', 

706 'A1', 

707 'abserror', 

708 'absolute', 

709 'aniso', 

710 'aspectratio', 

711 'B', 

712 'B1', 

713 'bb', 

714 'beginend', 

715 'bin', 

716 'boundary', 

717 'bw', 

718 'close', 

719 'cmm', 

720 'coef', 

721 'composante', 

722 'cutoff', 

723 'datafilename', 

724 'dataname', 

725 'dim', 

726 'distmax', 

727 'displacement', 

728 'doptions', 

729 'dparams', 

730 'eps', 

731 'err', 

732 'errg', 

733 'facemerge', 

734 'facetcl', 

735 'factorize', 

736 'file', 

737 'fill', 

738 'fixedborder', 

739 'flabel', 

740 'flags', 

741 'floatmesh', 

742 'floatsol', 

743 'fregion', 

744 'gradation', 

745 'grey', 

746 'hmax', 

747 'hmin', 

748 'holelist', 

749 'hsv', 

750 'init', 

751 'inquire', 

752 'inside', 

753 'IsMetric', 

754 'iso', 

755 'ivalue', 

756 'keepbackvertices', 

757 'label', 

758 'labeldown', 

759 'labelmid', 

760 'labelup', 

761 'levelset', 

762 'loptions', 

763 'lparams', 

764 'maxit', 

765 'maxsubdiv', 

766 'meditff', 

767 'mem', 

768 'memory', 

769 'metric', 

770 'mode', 

771 'nbarrow', 

772 'nbiso', 

773 'nbiter', 

774 'nbjacoby', 

775 'nboffacetcl', 

776 'nbofholes', 

777 'nbofregions', 

778 'nbregul', 

779 'nbsmooth', 

780 'nbvx', 

781 'ncv', 

782 'nev', 

783 'nomeshgeneration', 

784 'normalization', 

785 'omega', 

786 'op', 

787 'optimize', 

788 'option', 

789 'options', 

790 'order', 

791 'orientation', 

792 'periodic', 

793 'power', 

794 'precon', 

795 'prev', 

796 'ps', 

797 'ptmerge', 

798 'qfe', 

799 'qforder', 

800 'qft', 

801 'qfV', 

802 'ratio', 

803 'rawvector', 

804 'reffacelow', 

805 'reffacemid', 

806 'reffaceup', 

807 'refnum', 

808 'reftet', 

809 'reftri', 

810 'region', 

811 'regionlist', 

812 'renumv', 

813 'rescaling', 

814 'ridgeangle', 

815 'save', 

816 'sigma', 

817 'sizeofvolume', 

818 'smoothing', 

819 'solver', 

820 'sparams', 

821 'split', 

822 'splitin2', 

823 'splitpbedge', 

824 'stop', 

825 'strategy', 

826 'swap', 

827 'switch', 

828 'sym', 

829 't', 

830 'tgv', 

831 'thetamax', 

832 'tol', 

833 'tolpivot', 

834 'tolpivotsym', 

835 'transfo', 

836 'U2Vc', 

837 'value', 

838 'varrow', 

839 'vector', 

840 'veps', 

841 'viso', 

842 'wait', 

843 'width', 

844 'withsurfacemesh', 

845 'WindowIndex', 

846 'which', 

847 'zbound' 

848 } 

849 

850 # deprecated 

851 deprecated = {'fixeborder'} 

852 

853 # do not highlight 

854 suppress_highlight = { 

855 'alignof', 

856 'asm', 

857 'constexpr', 

858 'decltype', 

859 'div', 

860 'double', 

861 'grad', 

862 'mutable', 

863 'namespace', 

864 'noexcept', 

865 'restrict', 

866 'static_assert', 

867 'template', 

868 'this', 

869 'thread_local', 

870 'typeid', 

871 'typename', 

872 'using' 

873 } 

874 

875 def get_tokens_unprocessed(self, text, stack=('root',)): 

876 for index, token, value in CppLexer.get_tokens_unprocessed(self, text, stack): 

877 if value in self.operators: 

878 yield index, Operator, value 

879 elif value in self.types: 

880 yield index, Keyword.Type, value 

881 elif value in self.fespaces: 

882 yield index, Name.Class, value 

883 elif value in self.preprocessor: 

884 yield index, Comment.Preproc, value 

885 elif value in self.keywords: 

886 yield index, Keyword.Reserved, value 

887 elif value in self.functions: 

888 yield index, Name.Function, value 

889 elif value in self.parameters: 

890 yield index, Keyword.Pseudo, value 

891 elif value in self.suppress_highlight: 

892 yield index, Name, value 

893 else: 

894 yield index, token, value