Sha256: 44f6f7ac9065215b01e8c6239fafee8697fad78f508da8f88ac13e64daf37994

Contents?: true

Size: 544 Bytes

Versions: 42

Compression:

Stored size: 544 Bytes

Contents

import std.stdio;

void main() {
    // Nesting delimited strings
    auto a = q"{foo " {bar} baz}";
    auto b = q"[foo [bar] " baz]";
    auto c = q"(foo " (bar) baz)";
    auto d = q"<foo <bar> " baz>";
    // Non-nesting delimited strings
    auto e = q"/foo " bar/";
    auto f = q"-Another " string-";
    // "heredoc" strings
    auto g = q"FOO
        This is a string!
FOO";
    // Token strings (only the q{} should be highlighted as a string)
    auto h = q{
        int i;
        void foo() { writefln("Hello, world!"); }
    };
}

Version data entries

42 entries across 42 versions & 5 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/string_delimiters.d
mortar-pygments.rb-0.5.7 vendor/pygments-main/tests/examplefiles/string_delimiters.d
mortar-pygments.rb-0.5.6 vendor/pygments-main/tests/examplefiles/string_delimiters.d
mortar-pygments.rb-0.5.5 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-jruby-0.5.4.2 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-jruby-0.5.4.1 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-jruby-0.5.4 vendor/pygments-main/tests/examplefiles/string_delimiters.d
gitlab-pygments.rb-0.5.4 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.5.4 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.5.2 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.5.1 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.5.0 vendor/pygments-main/tests/examplefiles/string_delimiters.d
gitlab-pygments.rb-0.3.2 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.4.2 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.4.1 vendor/pygments-main/tests/examplefiles/string_delimiters.d
pygments.rb-0.3.7 vendor/pygments-main/tests/examplefiles/string_delimiters.d