2022-09-21 09:41:03 +00:00
|
|
|
created: 20220917112931273
|
2022-10-19 08:15:38 +00:00
|
|
|
modified: 20221019081352266
|
2022-09-21 09:41:03 +00:00
|
|
|
tags: Pragmas
|
|
|
|
title: Pragma: \rules
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
2022-10-03 13:40:27 +00:00
|
|
|
The ''\rules'' [[pragma|Pragmas]] adjusts the set of parser rules used to parse the remaining text.
|
|
|
|
|
|
|
|
```
|
|
|
|
\rules only|expect <rule-list>
|
|
|
|
```
|
|
|
|
|
|
|
|
The list of available parser rules can be consulted in $:/ControlPanel -> Info -> Advanced -> Parsing.
|
|
|
|
|
|
|
|
For example, in stylesheets it is typical to only use the rules associated with macros and transclusions:
|
|
|
|
|
|
|
|
```
|
|
|
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
|
|
|
```
|
|
|
|
|
|
|
|
Some users prefer not to use CamelCase links:
|
|
|
|
|
|
|
|
```
|
|
|
|
\rules except prettylink
|
|
|
|
```
|