diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index ecc1bed7..78ddf3b7 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1225,6 +1225,14 @@ Logtalk: - .lgt - .logtalk +LookML: + type: programming + lexer: YAML + ace_mode: yaml + color: "#652B81" + extensions: + - .lookml + Lua: type: programming ace_mode: lua diff --git a/samples/LookML/comments.view.lookml b/samples/LookML/comments.view.lookml new file mode 100644 index 00000000..ed2d29aa --- /dev/null +++ b/samples/LookML/comments.view.lookml @@ -0,0 +1,43 @@ +- view: comments + fields: + + - dimension: id + primary_key: true + type: int + sql: ${TABLE}.id + + - dimension: body + sql: ${TABLE}.body + + - dimension_group: created + type: time + timeframes: [time, date, week, month] + sql: ${TABLE}.created_at + + - dimension: headline_id + type: int + hidden: true + sql: ${TABLE}.headline_id + + - dimension_group: updated + type: time + timeframes: [time, date, week, month] + sql: ${TABLE}.updated_at + + - dimension: user_id + type: int + hidden: true + sql: ${TABLE}.user_id + + - measure: count + type: count + detail: detail* + + + # ----- Detail ------ + sets: + detail: + - id + - headlines.id + - headlines.name + - users.id