User:松/Drafts/Extension:AbuseFilter/Rules format: Difference between revisions
< User:松
Content added Content deleted
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
-123 |
-123 |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
== Comments == |
|||
You can specify comments using the following syntax: |
|||
/* This is a comment */ |
Revision as of 00:38, 6 November 2017
Literals
You can specify a literal by placing it in single or double quotes (for strings), or by typing it in as-is (for numbers, both floating-point and integer). You can get linebreaks with \n
, tab characters with \t
, and you can also escape the quote character with a backslash.
Examples
"This is a string"
'This is also a string'
'This string shouldn\'t fail'
"This string\nHas a linebreak"
1234
1.234
-123