wireshark/docbook/wsug_src
Peter Wu 699ee5dc52 dfilter: make spaces around ".." optional in display filter
For numeric values such as port numbers, "4430..4434" looks more
natural than "4430 .. 4434", so support that.

To make this possible, the display filter syntax needs to be restricted.
Assume that neither field names nor values can contain "..". The display
filter `data contains ..` will now be considered a syntax error and must
be written as `data contains ".."` instead. More generally, all values
that contain ".." must be quoted.

Other than the ".." restriction, the scanner deliberately accepts more
characters that can potentially form invalid input. This is to prevent
accidentally splitting input in multiple tokens.  For example, "9.2." in
"frame.time_delta in {9.2.}" is currently parsed as one token and then
rejected because it cannot be parsed as time. If the scanner was made
stricter, it could treat it as two tokens (floats), "9." and "2." which
has different meaning for the set membership operator.

An unhandled edge case is "1....2" which is parsed as "1 .. ..  2" but
could have been parsed as "1. .. .2" instead. A float with trailing dots
followed by ".." seems sufficiently weird, so rejection is fine.

Ping-Bug: 14180
Change-Id: Ibad8e851b49346c9d470f09d5d6a54defa21bcb9
Reviewed-on: https://code.wireshark.org/review/26960
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-18 03:47:31 +00:00
..
WSUG_app_files.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_app_howitworks.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_app_messages.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_app_protocols.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_app_tools.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_chapter_advanced.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_chapter_build_install.asciidoc Remove some references to PortAudio. 2018-04-15 05:33:12 +00:00
WSUG_chapter_capture.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_chapter_customize.asciidoc Transition from GeoIP Legacy to MaxMindDB. 2018-03-06 18:02:21 +00:00
WSUG_chapter_introduction.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_chapter_io.asciidoc Docs: Remove a bunch of GTK+ references. 2018-04-09 05:02:12 +00:00
WSUG_chapter_statistics.asciidoc Docs: Fix some cross references. 2018-03-26 16:38:10 +00:00
WSUG_chapter_telephony.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_chapter_troubleshoot.asciidoc WSUG: Fixup some quotes and apostrophes. 2018-02-26 02:05:17 +00:00
WSUG_chapter_use.asciidoc Docs: Fix some cross references. 2018-03-26 16:38:10 +00:00
WSUG_chapter_work.asciidoc dfilter: make spaces around ".." optional in display filter 2018-04-18 03:47:31 +00:00
WSUG_preface.asciidoc AsciiDoc: Convert some comments. 2018-02-05 17:02:27 +00:00
capinfos-h.txt [Automatic update for 2017-10-01] 2017-10-01 08:13:43 +00:00
dumpcap-h.txt [Automatic update for 2018-01-14] 2018-01-14 08:16:05 +00:00
editcap-F.txt [Automatic update for 2017-10-01] 2017-10-01 08:13:43 +00:00
editcap-T.txt [Automatic update for 2018-02-18] 2018-02-18 08:15:54 +00:00
editcap-h.txt Docbook: Automatically generate the tools help output. 2017-09-25 23:05:11 +00:00
mergecap-h.txt Docbook: Automatically generate the tools help output. 2017-09-25 23:05:11 +00:00
rawshark-h.txt Docbook: Automatically generate the tools help output. 2017-09-25 23:05:11 +00:00
reordercap-h.txt Docbook: Automatically generate the tools help output. 2017-09-25 23:05:11 +00:00
text2pcap-h.txt Use pcapng as the name of the file format. 2018-01-09 00:38:51 +00:00
tshark-h.txt [Automatic update for 2018-01-14] 2018-01-14 08:16:05 +00:00