1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-13 13:28:27 +02:00
chroma/lexers/testdata/yang.actual
GRIBOK 28041a86ba
Add YANG lexer (#348)
* add yang lexer. See alecthomas/chroma#347

* Alphabetise all keywords in yang lexer
2020-04-14 18:36:08 +10:00

65 lines
1.5 KiB
Plaintext

module server-system {
yang-version 1.1;
namespace "http://autlan.dt/gribok/yang/example";
prefix ex;
import ietf-yang-types {
prefix yang;
reference
"RFC 6991: Common YANG Data Types.";
}
organization "Gribok";
contact "gribok@example.org";
description
"An example module";
revision 2020-04-03 {
description "Example yang";
}
/*
* Comment for container system
*/
container system {
leaf host-name {
type string;
description "Hostname for this system";
}
leaf-list domain-search {
type string;
description "List of domain names to search";
}
container login {
leaf message {
type string;
description
"Message given at start of login session";
}
list user {
key "name";
leaf name {
type string;
}
leaf uuid {
type yang:uuid;
}
leaf full-name {
type string;
mandatory true;
description
"The full name of user See also 'name'. This could
be, for example, a reference to the user name";
}
leaf class {
type string;
}
}
}
}
}