...

Text file src/github.com/alecthomas/chroma/lexers/testdata/qml.expected

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1[
     2  {"type":"KeywordReserved","value":"import"},
     3  {"type":"Text","value":" "},
     4  {"type":"NameOther","value":"QtQuick"},
     5  {"type":"Text","value":" "},
     6  {"type":"LiteralNumberFloat","value":"2.12"},
     7  {"type":"Text","value":"\n"},
     8  {"type":"KeywordReserved","value":"import"},
     9  {"type":"Text","value":" "},
    10  {"type":"NameOther","value":"QtQuick"},
    11  {"type":"Punctuation","value":"."},
    12  {"type":"NameOther","value":"Controls"},
    13  {"type":"Text","value":" "},
    14  {"type":"LiteralNumberFloat","value":"2.15"},
    15  {"type":"Text","value":" "},
    16  {"type":"NameOther","value":"as"},
    17  {"type":"Text","value":" "},
    18  {"type":"NameOther","value":"QQC2"},
    19  {"type":"Text","value":"\n\n"},
    20  {"type":"KeywordReserved","value":"import"},
    21  {"type":"Text","value":" "},
    22  {"type":"NameOther","value":"org"},
    23  {"type":"Punctuation","value":"."},
    24  {"type":"NameOther","value":"kde"},
    25  {"type":"Punctuation","value":"."},
    26  {"type":"NameOther","value":"kirigami"},
    27  {"type":"Text","value":" "},
    28  {"type":"LiteralNumberFloat","value":"2.7"},
    29  {"type":"Text","value":" "},
    30  {"type":"NameOther","value":"as"},
    31  {"type":"Text","value":" "},
    32  {"type":"NameOther","value":"Kirigami"},
    33  {"type":"Text","value":"\n"},
    34  {"type":"KeywordReserved","value":"import"},
    35  {"type":"Text","value":" "},
    36  {"type":"NameOther","value":"org"},
    37  {"type":"Punctuation","value":"."},
    38  {"type":"NameOther","value":"kde"},
    39  {"type":"Punctuation","value":"."},
    40  {"type":"NameOther","value":"kcm"},
    41  {"type":"Text","value":" "},
    42  {"type":"LiteralNumberFloat","value":"1.2"},
    43  {"type":"Text","value":"\n"},
    44  {"type":"KeywordReserved","value":"import"},
    45  {"type":"Text","value":" "},
    46  {"type":"NameOther","value":"org"},
    47  {"type":"Punctuation","value":"."},
    48  {"type":"NameOther","value":"kde"},
    49  {"type":"Punctuation","value":"."},
    50  {"type":"NameOther","value":"kinfocenter"},
    51  {"type":"Punctuation","value":"."},
    52  {"type":"NameOther","value":"nic"},
    53  {"type":"Punctuation","value":"."},
    54  {"type":"KeywordReserved","value":"private"},
    55  {"type":"Text","value":" "},
    56  {"type":"LiteralNumberFloat","value":"1.0"},
    57  {"type":"Text","value":"\n\n"},
    58  {"type":"NameOther","value":"ScrollViewKCM"},
    59  {"type":"Text","value":" "},
    60  {"type":"Punctuation","value":"{"},
    61  {"type":"Text","value":"\n    "},
    62  {"type":"Keyword","value":"ConfigModule.quickHelp:"},
    63  {"type":"Text","value":" "},
    64  {"type":"NameOther","value":"i18n"},
    65  {"type":"Punctuation","value":"("},
    66  {"type":"LiteralStringDouble","value":"\"Network Information\""},
    67  {"type":"Punctuation","value":")"},
    68  {"type":"Text","value":"\n    "},
    69  {"type":"Keyword","value":"clip:"},
    70  {"type":"Text","value":" "},
    71  {"type":"KeywordConstant","value":"true"},
    72  {"type":"Text","value":"\n    \n    "},
    73  {"type":"Keyword","value":"view:"},
    74  {"type":"Text","value":" "},
    75  {"type":"NameOther","value":"TableView"},
    76  {"type":"Text","value":" "},
    77  {"type":"Punctuation","value":"{"},
    78  {"type":"Text","value":"\n        "},
    79  {"type":"KeywordDeclaration","value":"id: tableview"},
    80  {"type":"Text","value":"\n        "},
    81  {"type":"Keyword","value":"clip:"},
    82  {"type":"Text","value":" "},
    83  {"type":"KeywordConstant","value":"true"},
    84  {"type":"Text","value":"\n        \n        "},
    85  {"type":"Keyword","value":"columnWidthProvider:"},
    86  {"type":"Text","value":" "},
    87  {"type":"KeywordDeclaration","value":"function"},
    88  {"type":"Text","value":" "},
    89  {"type":"Punctuation","value":"("},
    90  {"type":"NameOther","value":"column"},
    91  {"type":"Punctuation","value":")"},
    92  {"type":"Text","value":" "},
    93  {"type":"Punctuation","value":"{"},
    94  {"type":"Text","value":" \n            "},
    95  {"type":"Keyword","value":"return"},
    96  {"type":"Text","value":" "},
    97  {"type":"NameOther","value":"tableview"},
    98  {"type":"Punctuation","value":"."},
    99  {"type":"NameOther","value":"model"},
   100  {"type":"Text","value":" "},
   101  {"type":"Operator","value":"?"},
   102  {"type":"Text","value":" "},
   103  {"type":"NameOther","value":"tableview"},
   104  {"type":"Punctuation","value":"."},
   105  {"type":"NameOther","value":"width"},
   106  {"type":"Text","value":" "},
   107  {"type":"Operator","value":"/"},
   108  {"type":"Text","value":" "},
   109  {"type":"NameOther","value":"tableview"},
   110  {"type":"Punctuation","value":"."},
   111  {"type":"NameOther","value":"model"},
   112  {"type":"Punctuation","value":"."},
   113  {"type":"NameOther","value":"columnCount"},
   114  {"type":"Punctuation","value":"()"},
   115  {"type":"Text","value":" "},
   116  {"type":"Operator","value":":"},
   117  {"type":"Text","value":" "},
   118  {"type":"LiteralNumberInteger","value":"0"},
   119  {"type":"Text","value":"\n        "},
   120  {"type":"Punctuation","value":"}"},
   121  {"type":"Text","value":"\n\n        "},
   122  {"type":"Keyword","value":"model:"},
   123  {"type":"Text","value":" "},
   124  {"type":"NameOther","value":"NetworkModel"},
   125  {"type":"Text","value":" "},
   126  {"type":"Punctuation","value":"{"},
   127  {"type":"Text","value":"\n            "},
   128  {"type":"KeywordDeclaration","value":"id: model"},
   129  {"type":"Text","value":"\n        "},
   130  {"type":"Punctuation","value":"}"},
   131  {"type":"Text","value":"\n\n        "},
   132  {"type":"Keyword","value":"delegate:"},
   133  {"type":"Text","value":" "},
   134  {"type":"NameOther","value":"Rectangle"},
   135  {"type":"Text","value":" "},
   136  {"type":"Punctuation","value":"{"},
   137  {"type":"Text","value":"\n            "},
   138  {"type":"NameOther","value":"readonly"},
   139  {"type":"Text","value":" "},
   140  {"type":"NameOther","value":"property"},
   141  {"type":"Text","value":" "},
   142  {"type":"NameOther","value":"real"},
   143  {"type":"Text","value":" "},
   144  {"type":"Keyword","value":"cellPadding:"},
   145  {"type":"Text","value":" "},
   146  {"type":"LiteralNumberInteger","value":"8"},
   147  {"type":"Text","value":"\n            "},
   148  {"type":"NameOther","value":"readonly"},
   149  {"type":"Text","value":" "},
   150  {"type":"NameOther","value":"property"},
   151  {"type":"Text","value":" "},
   152  {"type":"NameOther","value":"color"},
   153  {"type":"Text","value":" "},
   154  {"type":"Keyword","value":"borderColor:"},
   155  {"type":"Text","value":" "},
   156  {"type":"NameOther","value":"Kirigami"},
   157  {"type":"Punctuation","value":"."},
   158  {"type":"NameOther","value":"Theme"},
   159  {"type":"Punctuation","value":"."},
   160  {"type":"NameOther","value":"Color"},
   161  {"type":"Text","value":"\n            "},
   162  {"type":"Keyword","value":"color:"},
   163  {"type":"Text","value":" "},
   164  {"type":"NameOther","value":"row"},
   165  {"type":"Text","value":" "},
   166  {"type":"Operator","value":"%"},
   167  {"type":"Text","value":" "},
   168  {"type":"LiteralNumberInteger","value":"2"},
   169  {"type":"Text","value":" "},
   170  {"type":"Operator","value":"==="},
   171  {"type":"Text","value":" "},
   172  {"type":"LiteralNumberInteger","value":"0"},
   173  {"type":"Text","value":" "},
   174  {"type":"Operator","value":"?"},
   175  {"type":"Text","value":" "},
   176  {"type":"LiteralStringDouble","value":"\"transparent\""},
   177  {"type":"Text","value":" "},
   178  {"type":"Operator","value":":"},
   179  {"type":"Text","value":" "},
   180  {"type":"NameOther","value":"Kirigami"},
   181  {"type":"Punctuation","value":"."},
   182  {"type":"NameOther","value":"Theme"},
   183  {"type":"Punctuation","value":"."},
   184  {"type":"NameOther","value":"alternateBackgroundColor"},
   185  {"type":"Text","value":"\n            \n            "},
   186  {"type":"Keyword","value":"implicitWidth:"},
   187  {"type":"Text","value":" "},
   188  {"type":"NameOther","value":"tableview"},
   189  {"type":"Punctuation","value":"."},
   190  {"type":"NameOther","value":"width"},
   191  {"type":"Text","value":" "},
   192  {"type":"Operator","value":"/"},
   193  {"type":"Text","value":" "},
   194  {"type":"NameOther","value":"tableview"},
   195  {"type":"Punctuation","value":"."},
   196  {"type":"NameOther","value":"model"},
   197  {"type":"Punctuation","value":"."},
   198  {"type":"NameOther","value":"columnCount"},
   199  {"type":"Punctuation","value":"()"},
   200  {"type":"Text","value":"\n            "},
   201  {"type":"Keyword","value":"implicitHeight:"},
   202  {"type":"Text","value":" "},
   203  {"type":"NameOther","value":"text"},
   204  {"type":"Punctuation","value":"."},
   205  {"type":"NameOther","value":"contentHeight"},
   206  {"type":"Text","value":" "},
   207  {"type":"Operator","value":"+"},
   208  {"type":"Text","value":" "},
   209  {"type":"NameOther","value":"Kirigami"},
   210  {"type":"Punctuation","value":"."},
   211  {"type":"NameOther","value":"Units"},
   212  {"type":"Punctuation","value":"."},
   213  {"type":"NameOther","value":"largeSpacing"},
   214  {"type":"Text","value":"\n            \n            "},
   215  {"type":"NameOther","value":"Text"},
   216  {"type":"Text","value":" "},
   217  {"type":"Punctuation","value":"{"},
   218  {"type":"Text","value":"\n                "},
   219  {"type":"KeywordDeclaration","value":"id: text"},
   220  {"type":"Text","value":"\n                "},
   221  {"type":"Keyword","value":"text:"},
   222  {"type":"Text","value":" "},
   223  {"type":"NameOther","value":"display"},
   224  {"type":"Text","value":"\n                "},
   225  {"type":"Keyword","value":"x:"},
   226  {"type":"Text","value":" "},
   227  {"type":"NameOther","value":"Kirigami"},
   228  {"type":"Punctuation","value":"."},
   229  {"type":"NameOther","value":"Units"},
   230  {"type":"Punctuation","value":"."},
   231  {"type":"NameOther","value":"smallSpacing"},
   232  {"type":"Text","value":"\n                "},
   233  {"type":"Keyword","value":"width:"},
   234  {"type":"Text","value":" "},
   235  {"type":"NameOther","value":"parent"},
   236  {"type":"Punctuation","value":"."},
   237  {"type":"NameOther","value":"width"},
   238  {"type":"Text","value":" "},
   239  {"type":"Operator","value":"-"},
   240  {"type":"Text","value":" "},
   241  {"type":"NameOther","value":"Kirigami"},
   242  {"type":"Punctuation","value":"."},
   243  {"type":"NameOther","value":"Units"},
   244  {"type":"Punctuation","value":"."},
   245  {"type":"NameOther","value":"largeSpacing"},
   246  {"type":"Text","value":"\n                "},
   247  {"type":"Keyword","value":"height:"},
   248  {"type":"Text","value":" "},
   249  {"type":"NameOther","value":"parent"},
   250  {"type":"Punctuation","value":"."},
   251  {"type":"NameOther","value":"height"},
   252  {"type":"Text","value":"\n                "},
   253  {"type":"Keyword","value":"horizontalAlignment:"},
   254  {"type":"Text","value":" "},
   255  {"type":"NameOther","value":"Text"},
   256  {"type":"Punctuation","value":"."},
   257  {"type":"NameOther","value":"AlignHCenter"},
   258  {"type":"Text","value":"\n                "},
   259  {"type":"Keyword","value":"verticalAlignment:"},
   260  {"type":"Text","value":" "},
   261  {"type":"NameOther","value":"Text"},
   262  {"type":"Punctuation","value":"."},
   263  {"type":"NameOther","value":"AlignVCenter"},
   264  {"type":"Text","value":"\n                "},
   265  {"type":"Keyword","value":"color:"},
   266  {"type":"Text","value":" "},
   267  {"type":"LiteralStringDouble","value":"\"#ff26282a\""},
   268  {"type":"Text","value":"\n                "},
   269  {"type":"Keyword","value":"wrapMode:"},
   270  {"type":"Text","value":" "},
   271  {"type":"NameOther","value":"Text"},
   272  {"type":"Punctuation","value":"."},
   273  {"type":"NameOther","value":"WrapAnywhere"},
   274  {"type":"Text","value":"\n            "},
   275  {"type":"Punctuation","value":"}"},
   276  {"type":"Text","value":"\n        "},
   277  {"type":"Punctuation","value":"}"},
   278  {"type":"Text","value":"\n        \n        "},
   279  {"type":"Keyword","value":"topMargin:"},
   280  {"type":"Text","value":" "},
   281  {"type":"NameOther","value":"headerView"},
   282  {"type":"Punctuation","value":"."},
   283  {"type":"NameOther","value":"implicitHeight"},
   284  {"type":"Text","value":"\n        \n        "},
   285  {"type":"NameOther","value":"QQC2"},
   286  {"type":"Punctuation","value":"."},
   287  {"type":"NameOther","value":"HorizontalHeaderView"},
   288  {"type":"Text","value":" "},
   289  {"type":"Punctuation","value":"{"},
   290  {"type":"Text","value":"\n            "},
   291  {"type":"KeywordDeclaration","value":"id: headerView"},
   292  {"type":"Text","value":"\n            "},
   293  {"type":"Keyword","value":"anchors.bottom:"},
   294  {"type":"Text","value":" "},
   295  {"type":"NameOther","value":"parent"},
   296  {"type":"Punctuation","value":"."},
   297  {"type":"NameOther","value":"top"},
   298  {"type":"Text","value":"\n            "},
   299  {"type":"Keyword","value":"syncView:"},
   300  {"type":"Text","value":" "},
   301  {"type":"NameOther","value":"tableview"},
   302  {"type":"Text","value":"\n        "},
   303  {"type":"Punctuation","value":"}"},
   304  {"type":"Text","value":"\n    "},
   305  {"type":"Punctuation","value":"}"},
   306  {"type":"Text","value":"\n    \n    "},
   307  {"type":"Keyword","value":"footer:"},
   308  {"type":"Text","value":" "},
   309  {"type":"NameOther","value":"QQC2"},
   310  {"type":"Punctuation","value":"."},
   311  {"type":"NameOther","value":"Button"},
   312  {"type":"Text","value":" "},
   313  {"type":"Punctuation","value":"{"},
   314  {"type":"Text","value":"\n        "},
   315  {"type":"Keyword","value":"text:"},
   316  {"type":"Text","value":" "},
   317  {"type":"NameOther","value":"i18nc"},
   318  {"type":"Punctuation","value":"("},
   319  {"type":"LiteralStringDouble","value":"\"Update the information displayed\""},
   320  {"type":"Punctuation","value":","},
   321  {"type":"Text","value":" "},
   322  {"type":"LiteralStringDouble","value":"\"Update\""},
   323  {"type":"Punctuation","value":")"},
   324  {"type":"Text","value":"\n        "},
   325  {"type":"Keyword","value":"onClicked:"},
   326  {"type":"Text","value":" "},
   327  {"type":"NameOther","value":"model"},
   328  {"type":"Punctuation","value":"."},
   329  {"type":"NameOther","value":"update"},
   330  {"type":"Punctuation","value":"();"},
   331  {"type":"Text","value":"\n    "},
   332  {"type":"Punctuation","value":"}"},
   333  {"type":"Text","value":"\n"},
   334  {"type":"Punctuation","value":"}"},
   335  {"type":"Text","value":"\n\n"}
   336]

View as plain text