Warning, /frameworks/syntax-highlighting/autotests/input/highlight_fluent.ftl is written in an unsupported language. File is not indexed.
0001 ### File wide comment, for reference see https://projectfluent.org 0002 ### And for a EBNF-Syntax, see https://github.com/projectfluent/fluent/blob/master/spec/fluent.ebnf 0003 0004 0005 ## Section comment: Simple texts 0006 # identifier = matched word 0007 hello-world = Hello World 0008 0009 # multiline text 0010 multiline = Some text on the first line 0011 And more text on the next line 0012 One could even go further 0013 0014 # block text 0015 block = 0016 No content on first line 0017 rest is like multiline 0018 0019 0020 ## Placeables, insert text from variables etc. 0021 variable-placeable = We currently have { $users } users 0022 stacked-placeable = More {{"Placeables"}} 0023 0024 # Term, used only in other texts, not final translation string 0025 -name = Fluent 0026 about = { -name } is great 0027 0028 # Term with parameters 0029 -special-term = Wrapper around { $parameter } 0030 using-wrapper = Wrapping { -special-term(parameter: "stuff") } 0031 0032 placeable-with-special-character = Using a {"{ and \U01F91A or \\"} 0033 0034 builtin-number = Time elapsed: { NUMBER($duration, maximumFractionDigits: 0) }s. 0035 0036 builtin-date = Last checked: { DATETIME($lastChecked, day: "numeric", month: "long") }. 0037 0038 0039 ## Selectors, different options for different types of numbers 0040 # by variable 0041 emails = 0042 { $unreadEmails -> 0043 [one] You have one unread email. 0044 *[other] You have { $unreadEmails } unread emails. 0045 } 0046 0047 # by function 0048 your-score = 0049 { NUMBER($score, minimumFractionDigits: 1) -> 0050 [0.0] You scored zero points. What happened? 0051 *[other] You scored { NUMBER($score, minimumFractionDigits: 1) } points. 0052 } 0053 0054 # with keywords 0055 your-rank = { NUMBER($pos, type: "ordinal") -> 0056 [1] You finished first! 0057 [one] You finished {$pos}st 0058 [two] You finished {$pos}nd 0059 [few] You finished {$pos}rd 0060 *[other] You finished {$pos}th 0061 } 0062 0063 ## Attributes 0064 login-input = Predefined value 0065 .placeholder = email@example.com 0066 .aria-label = Login input value 0067 .title = Type your login email 0068 0069 # accessible via . 0070 login-placeholder = {login-input.placeholder} 0071 0072 ## Faulty code, no gurantees for sense of the end of errors 0073 0074 faulty-quote = Won't work {"\"} 0075 still-inside\ 0076 {"lonely \\ \ "} 0077 } 0078 0079 disallowed-identifier characters 0080 disallowed-character$ 0081 0082 # Hilight only at the end of the line, not visible since err only visible on same line 0083 broken-function = {fn( 0084 fn(smth:123, 0, {) 0085 fn(noth!ng:3) 0086 fn(\) 0087 } 0088 0089 # Same for open ended string and wron unicode characters 0090 broken-string = { 0091 " 0092 "\u923" 0093 "\U92345" 0094 "\Ubcdefg" 0095 }